From 654528422dbe9174eaad34bde7bfab5b4c29739d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 13 Mar 2005 23:18:59 +0000 Subject: Preliminary support for MM NES. svn-id: r17133 --- scumm/resource_v2.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scumm/resource_v2.cpp') diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp index 8890febc95..64030a6a84 100644 --- a/scumm/resource_v2.cpp +++ b/scumm/resource_v2.cpp @@ -38,7 +38,14 @@ void ScummEngine_v2::readClassicIndexFile() { _numGlobalObjects = 800; _numRooms = 55; - _numCostumes = 35; + + if (_features & GF_NES) + // costumes 25-37 are special. see v1MMNEScostTables[] in costume.cpp + // costumes 38-77 are room graphics resources, to be referenced in + _numCostumes = 77; + else + _numCostumes = 35; + _numScripts = 200; _numSounds = 100; } else if (_gameId == GID_ZAK) { @@ -165,7 +172,6 @@ void ScummEngine_v2::readIndexFile() { readClassicIndexFile(); break; case 0x4643: - error("No support for NES version"); if (!(_features & GF_NES)) error("Use maniacnes target"); printf("NES V1 game detected\n"); -- cgit v1.2.3