aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2009-04-24 23:43:04 +0000
committerSven Hesse2009-04-24 23:43:04 +0000
commit951edc014a28d4d3f4d4ba7cebf5167f463c96f0 (patch)
tree2d8cb6383f6490662e38f76b63e0d7bdc615eb0b /engines/gob
parentf9c433353da884fdb20f37654a6c396b1f183cea (diff)
downloadscummvm-rg350-951edc014a28d4d3f4d4ba7cebf5167f463c96f0.tar.gz
scummvm-rg350-951edc014a28d4d3f4d4ba7cebf5167f463c96f0.tar.bz2
scummvm-rg350-951edc014a28d4d3f4d4ba7cebf5167f463c96f0.zip
Added a workaround for the inca2 demo's cons2.imd / cons.imd mix-up
svn-id: r40135
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/demoplayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/demoplayer.cpp b/engines/gob/demoplayer.cpp
index 772d31ffbe..829ecc2e4d 100644
--- a/engines/gob/demoplayer.cpp
+++ b/engines/gob/demoplayer.cpp
@@ -86,6 +86,11 @@ void DemoPlayer::playVideo(const char *fileName) {
waitTime = atoi(spaceBack) * 100;
}
+ // WORKAROUND: The Inca2 demo wants to play cons2.imd, but that file doesn't exist.
+ // cons.imd does, however.
+ if ((_vm->getGameType() == kGameTypeInca2) && (!scumm_stricmp(file, "cons2.imd")))
+ strcpy(file, "cons.imd");
+
debugC(1, kDebugDemo, "Playing video \"%s\"", file);
// Playing the video