diff options
author | Eugene Sandulenko | 2006-03-03 14:29:28 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-03 14:29:28 +0000 |
commit | 5e1f3fa2fa16a553af06ba0af46a7e852ef24c4d (patch) | |
tree | 8b1324ee577193a8b6b1db60f13d38e8503e8869 /engines | |
parent | ef564119ed0f61554be6c6f765180906d6b74ba1 (diff) | |
download | scummvm-rg350-5e1f3fa2fa16a553af06ba0af46a7e852ef24c4d.tar.gz scummvm-rg350-5e1f3fa2fa16a553af06ba0af46a7e852ef24c4d.tar.bz2 scummvm-rg350-5e1f3fa2fa16a553af06ba0af46a7e852ef24c4d.zip |
Fix bug #1439279: "SCUMM: SubstResFileNames partial breakage"
svn-id: r21034
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/scumm.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 8ede576db3..8a804fcb09 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -447,9 +447,14 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS _fileHandle = new ScummNESFile(); _containerFile = tmpBuf; } else if ((_game.platform == Common::kPlatformC64) && _substResFileName.winName) { - char tmpBuf1[128], tmpBuf2[128]; - generateSubstResFileName("00.LFL", tmpBuf1, sizeof(tmpBuf1)); - generateSubstResFileName("01.LFL", tmpBuf2, sizeof(tmpBuf2)); + char *tmpBuf1, *tmpBuf2; + if (_game.id == GID_MANIAC) { + tmpBuf1 = "maniac1.d64"; + tmpBuf2 = "maniac2.d64"; + } else { + tmpBuf1 = "zak1.d64"; + tmpBuf2 = "zak2.d64"; + } _fileHandle = new ScummC64File(tmpBuf1, tmpBuf2, _game.id == GID_MANIAC); |