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
This commit is contained in:
Torbjörn Andersson 2006-06-11 16:59:59 +00:00
parent 4549a61060
commit 079e72eafc

View File

@ -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 {