aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-03-04 12:57:12 +0000
committerMax Horn2006-03-04 12:57:12 +0000
commit6a4c709af669cb55321837fefc4756b040dec00c (patch)
tree385bada51bc073f4b536be9d0e7903745cd14284
parentfeeaa2c35ed9b85355cee5be665e566832293014 (diff)
downloadscummvm-rg350-6a4c709af669cb55321837fefc4756b040dec00c.tar.gz
scummvm-rg350-6a4c709af669cb55321837fefc4756b040dec00c.tar.bz2
scummvm-rg350-6a4c709af669cb55321837fefc4756b040dec00c.zip
No need to use generateSubstResFileName when we already know the result
svn-id: r21072
-rw-r--r--engines/scumm/scumm.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index b53dcb0512..bc7460c405 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -460,11 +460,9 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
if (_game.platform == Common::kPlatformNES) {
// We read data directly from NES ROM instead of extracting it with
// external tool
- char tmpBuf[128];
assert(_game.id == GID_MANIAC);
- generateSubstResFileName("00.LFL", tmpBuf, sizeof(tmpBuf));
_fileHandle = new ScummNESFile();
- _containerFile = tmpBuf;
+ _containerFile = _substResFileName.expandedName;
} else if (_game.platform == Common::kPlatformC64) {
// Read data from C64 disk images.
const char *tmpBuf1, *tmpBuf2;