cdrom: fix cue handling

This commit is contained in:
Brad Parker 2019-07-25 22:06:01 -04:00
parent f45fc36d09
commit f575075040

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;