aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-11 16:59:59 +0000
committerTorbjörn Andersson2006-06-11 16:59:59 +0000
commit079e72eafc05cb8112ba618ed5eb222bff33445d (patch)
tree0a9186c1b8575a23ece4ee859c36c9f367a13748
parent4549a61060ced2bbb0bc4f887bf05059df41eda3 (diff)
downloadscummvm-rg350-079e72eafc05cb8112ba618ed5eb222bff33445d.tar.gz
scummvm-rg350-079e72eafc05cb8112ba618ed5eb222bff33445d.tar.bz2
scummvm-rg350-079e72eafc05cb8112ba618ed5eb222bff33445d.zip
I don't have the German FF version with the wrong cutscene file names, but I
believe we need to adjust baseName as well, so that we can use an equally wrong (i.e. right) name for opening the audio track. svn-id: r23028
-rw-r--r--engines/simon/animation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp
index f5261aebe8..f6018b03a1 100644
--- a/engines/simon/animation.cpp
+++ b/engines/simon/animation.cpp
@@ -92,8 +92,12 @@ bool MoviePlayer::load(const char *filename) {
char shortName[20];
memset(shortName, 0, sizeof(shortName));
memcpy(shortName, filename, 6);
- sprintf(shortName, "%s~1.dxa", shortName);
+ sprintf(shortName, "%s~1.dxa", shortName);
+
+ memset(baseName, 0, sizeof(baseName));
+ memcpy(baseName, shortName, 8);
+
if (_fd.open(shortName) == false) {
error("Failed to load video file %s or %s", videoName, shortName);
} else {