Skip to content

Commit

Permalink
Merge pull request #53 from sergiobenrocha2/master
Browse files Browse the repository at this point in the history
Make it work with WAVE/WAV file type names in cue sheet. Fix #52.
  • Loading branch information
inactive123 committed Jan 22, 2017
2 parents 0ba4264 + fc0cf49 commit b3827d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mednafen/cdrom/CDAccess_Image.cpp
Expand Up @@ -683,7 +683,11 @@ bool CDAccess_Image::ImageOpen(const std::string& path, bool image_memcache)
//fstat(fileno(TmpTrack.fp), &stat_buf);
//TmpTrack.sectors = stat_buf.st_size; // / 2048;
}
else if(!strcasecmp(args[1].c_str(), "OGG") || !strcasecmp(args[1].c_str(), "VORBIS") || !strcasecmp(args[1].c_str(), "WAVE") || !strcasecmp(args[1].c_str(), "WAV") || !strcasecmp(args[1].c_str(), "PCM")
else if(!strcasecmp(args[1].c_str(), "WAVE") || !strcasecmp(args[1].c_str(), "WAV"))
{
// Make it work with WAVE / WAV file type names in the cue sheet, previously .wav was working only with BINARY
}
else if(!strcasecmp(args[1].c_str(), "OGG") || !strcasecmp(args[1].c_str(), "VORBIS") || !strcasecmp(args[1].c_str(), "PCM")
|| !strcasecmp(args[1].c_str(), "MPC") || !strcasecmp(args[1].c_str(), "MP+"))
{
TmpTrack.AReader = CDAFR_Open(TmpTrack.fp);
Expand Down

0 comments on commit b3827d9

Please sign in to comment.