Possible fix for bug 1754613. It's now possible to have an uncompressed music.rsc file when the rest of the data files are compressed

svn-id: r28126
This commit is contained in:
Filippos Karapetis 2007-07-17 18:04:30 +00:00
parent 91426f82c6
commit 5b7df04da9

View File

@ -427,14 +427,14 @@ bool Resource::createContexts() {
if (Common::File::exists("music.rsc") || Common::File::exists("music.cmp")) {
_contextsCount++;
digitalMusic = true;
if (_vm->getFeatures() & GF_COMPRESSED_SOUNDS)
if (Common::File::exists("music.cmp"))
sprintf(musicFileName, "music.cmp");
else
sprintf(musicFileName, "music.rsc");
} else if (Common::File::exists("musicd.rsc") || Common::File::exists("musicd.cmp")) {
_contextsCount++;
digitalMusic = true;
if (_vm->getFeatures() & GF_COMPRESSED_SOUNDS)
if (Common::File::exists("musicd.rsc"))
sprintf(musicFileName, "musicd.cmp");
else
sprintf(musicFileName, "musicd.rsc");