cdrom: fix cue handling

This commit is contained in:
Brad Parker 2019-07-25 22:06:17 -04:00
parent 2d050ee501
commit 8ca8109380

View File

@ -670,7 +670,13 @@ bool CDAccess_Image::ImageOpen(const std::string& path, bool image_memcache)
active_track = -1;
}
std::string efn = MDFN_EvalFIP(base_dir, args[0]);
std::string efn;
if(args[0].find("cdrom://") == std::string::npos)
efn = MDFN_EvalFIP(base_dir, args[0]);
else
efn = args[0];
TmpTrack.fp = new FileStream(efn.c_str(), MODE_READ);
TmpTrack.FirstFileInstance = 1;