Check for "track01" as well as "track1". (I hope I didn't break compilation by

modifying Windows-only code.)

svn-id: r39040
This commit is contained in:
Torbjörn Andersson 2009-03-01 15:15:51 +00:00
parent 7ea5cefef4
commit f20554d389

View File

@ -193,15 +193,20 @@ void Engine::checkCD() {
// if it's running from CD.
#ifdef USE_VORBIS
if (Common::File::exists("track1.ogg"))
if (Common::File::exists("track1.ogg") ||
Common::File::exists("track01.ogg"))
return;
#endif
#ifdef USE_FLAC
if (Common::File::exists("track1.fla") || Common::File::exists("track1.flac"))
if (Common::File::exists("track1.fla") ||
Common::File::exists("track1.flac") ||
Common::File::exists("track01.fla") ||
Common::File::exists("track01.flac"))
return;
#endif
#ifdef USE_MAD
if (Common::File::exists("track1.mp3"))
if (Common::File::exists("track1.mp3") ||
Common::File::exists("track01.mp3"))
return;
#endif