diff options
author | Kirben | 2014-12-08 19:26:39 +1100 |
---|---|---|
committer | Kirben | 2014-12-08 19:26:39 +1100 |
commit | 6e24e7df3b9c39b03d1652bdf34f275d7ed8c1fc (patch) | |
tree | 27e8f9f67af3ab3d59dd49a8f3589337c991d4bd /engines/scumm/file.cpp | |
parent | ecb1979245fb6695a68286a59f5eaf2c3677b579 (diff) | |
parent | 962c8b4524f46bbc2394d7a80972db0a474221a3 (diff) | |
download | scummvm-rg350-6e24e7df3b9c39b03d1652bdf34f275d7ed8c1fc.tar.gz scummvm-rg350-6e24e7df3b9c39b03d1652bdf34f275d7ed8c1fc.tar.bz2 scummvm-rg350-6e24e7df3b9c39b03d1652bdf34f275d7ed8c1fc.zip |
Merge pull request #546 from segrax/V0_Demo
SCUMM: Maniac V0: Add support for D64 Demo Disk, Cleanup duplicate 'Talk...
Diffstat (limited to 'engines/scumm/file.cpp')
-rw-r--r-- | engines/scumm/file.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/engines/scumm/file.cpp b/engines/scumm/file.cpp index 475ffa3238..96b46aa21a 100644 --- a/engines/scumm/file.cpp +++ b/engines/scumm/file.cpp @@ -221,6 +221,15 @@ static const int maniacResourcesPerFile[55] = { 3, 10, 1, 0, 0 }; +static const int maniacDemoResourcesPerFile[55] = { + 0, 12, 0, 2, 1, 12, 1, 13, 6, 0, + 31, 0, 1, 0, 0, 0, 0, 1, 1, 1, + 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, + 2, 7, 1, 11, 0, 0, 5, 1, 0, 0, + 1, 0, 1, 3, 4, 3, 1, 0, 0, 1, + 2, 2, 0, 0, 0 +}; + static const int zakResourcesPerFile[59] = { 0, 29, 12, 14, 13, 4, 4, 10, 7, 4, 14, 19, 5, 4, 7, 6, 11, 9, 4, 4, @@ -253,9 +262,17 @@ ScummDiskImage::ScummDiskImage(const char *disk1, const char *disk2, GameSetting _numGlobalObjects = 256; _numRooms = 55; _numCostumes = 25; - _numScripts = 160; - _numSounds = 70; - _resourcesPerFile = maniacResourcesPerFile; + + if (_game.features & GF_DEMO) { + _numScripts = 55; + _numSounds = 40; + _resourcesPerFile = maniacDemoResourcesPerFile; + } else { + _numScripts = 160; + _numSounds = 70; + _resourcesPerFile = maniacResourcesPerFile; + } + } else { _numGlobalObjects = 775; _numRooms = 59; @@ -327,6 +344,9 @@ bool ScummDiskImage::open(const Common::String &filename) { extractIndex(0); // Fill in resource arrays + if (_game.features & GF_DEMO) + return true; + openDisk(2); if (_game.platform == Common::kPlatformApple2GS) { |