mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 02:36:27 +00:00
Fixed incorrect file assignment for the ITE Windows demo
svn-id: r28372
This commit is contained in:
parent
9bdbb470c0
commit
6b590bf4d1
@ -435,7 +435,7 @@ bool Resource::createContexts() {
|
||||
} else if (Common::File::exists("musicd.rsc") || Common::File::exists("musicd.cmp")) {
|
||||
_contextsCount++;
|
||||
digitalMusic = true;
|
||||
if (Common::File::exists("musicd.rsc"))
|
||||
if (Common::File::exists("musicd.cmp"))
|
||||
sprintf(musicFileName, "musicd.cmp");
|
||||
else
|
||||
sprintf(musicFileName, "musicd.rsc");
|
||||
@ -452,22 +452,13 @@ bool Resource::createContexts() {
|
||||
|
||||
// For ITE, add the digital music file and sfx file information here
|
||||
if (_vm->getGameType() == GType_ITE && digitalMusic && i == _contextsCount - 1) {
|
||||
if (_vm->getFeatures() & GF_COMPRESSED_SOUNDS)
|
||||
context->fileName = musicFileName;
|
||||
else
|
||||
context->fileName = musicFileName;
|
||||
context->fileName = musicFileName;
|
||||
context->fileType = GAME_MUSICFILE;
|
||||
} else if (_vm->getGameType() == GType_ITE && !soundFileInArray && i == soundFileIndex) {
|
||||
if (_vm->getFeatures() & GF_COMPRESSED_SOUNDS)
|
||||
context->fileName = soundFileName;
|
||||
else
|
||||
context->fileName = soundFileName;
|
||||
context->fileName = soundFileName;
|
||||
context->fileType = GAME_SOUNDFILE;
|
||||
} else if (_vm->getGameType() == GType_ITE && !voicesFileInArray && i == voicesFileIndex) {
|
||||
if (_vm->getFeatures() & GF_COMPRESSED_SOUNDS)
|
||||
context->fileName = voicesFileName;
|
||||
else
|
||||
context->fileName = voicesFileName;
|
||||
context->fileName = voicesFileName;
|
||||
// can be GAME_VOICEFILE or GAME_SOUNDFILE | GAME_VOICEFILE or GAME_VOICEFILE | GAME_SWAPENDIAN
|
||||
context->fileType = voiceFileType;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user