diff options
author | Jonathan Gray | 2003-07-12 10:02:12 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-07-12 10:02:12 +0000 |
commit | 97b67117d3fc90a07f9c8f27cdcf73dc4c215c0e (patch) | |
tree | 74c85b5a8d85b1e639d3bf2f861cb1daeac1b622 | |
parent | dabe8799a126362b6a59514252600b022729cae7 (diff) | |
download | scummvm-rg350-97b67117d3fc90a07f9c8f27cdcf73dc4c215c0e.tar.gz scummvm-rg350-97b67117d3fc90a07f9c8f27cdcf73dc4c215c0e.tar.bz2 scummvm-rg350-97b67117d3fc90a07f9c8f27cdcf73dc4c215c0e.zip |
add some stuff for v0.0109
svn-id: r8936
-rw-r--r-- | sky/disk.cpp | 5 | ||||
-rw-r--r-- | sky/sky.cpp | 6 | ||||
-rw-r--r-- | sky/text.cpp | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sky/disk.cpp b/sky/disk.cpp index f0ded23e0a..f6ef96c771 100644 --- a/sky/disk.cpp +++ b/sky/disk.cpp @@ -428,6 +428,9 @@ void SkyDisk::dumpFile(uint16 fileNr) { uint32 SkyDisk::determineGameVersion() { //determine game version based on number of entries in dinner table switch (_dinnerTableEntries) { + case 243: + // pc gamer demo (v0.0109) + return 109; case 247: //floppy demo (v0.0267) return 267; @@ -452,7 +455,7 @@ uint32 SkyDisk::determineGameVersion() { return 372; default: //unknown version - error("Unknown game version!"); + error("Unknown game version! %d dinner table entries", _dinnerTableEntries); break; } } diff --git a/sky/sky.cpp b/sky/sky.cpp index 1391fce64a..1fa9c2d063 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -426,6 +426,7 @@ void SkyState::delay(uint amount) { //copied and mutilated from Simon.cpp bool SkyState::isDemo(void) { switch (_systemVars.gameVersion) { + case 109: // pc gamer demo case 267: // floppy demo case 365: // cd demo return true; @@ -437,13 +438,14 @@ bool SkyState::isDemo(void) { case 372: return false; default: - error("Unknown game version"); + error("Unknown game version %d", _systemVars.gameVersion); } } bool SkyState::isCDVersion(void) { switch (_systemVars.gameVersion) { + case 109: case 267: case 288: case 303: @@ -455,7 +457,7 @@ bool SkyState::isCDVersion(void) { case 372: return true; default: - error("Unknown game version"); + error("Unknown game version %d", _systemVars.gameVersion); } } diff --git a/sky/text.cpp b/sky/text.cpp index 9e7635902f..586dcf7fad 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -455,7 +455,7 @@ void SkyText::initHuffTree() { _huffTree = _huffTree_00372; break; default: - error("Unknown game version"); + error("Unknown game version %d", SkyState::_systemVars.gameVersion); } } |