diff options
author | Filippos Karapetis | 2012-06-14 12:12:30 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-06-14 12:20:39 +0300 |
commit | 21b6b81f16abc4af90a7e21974d51ad7a984f1ed (patch) | |
tree | 379f8c7bbad76d77752b9cee15827298bd506396 /engines | |
parent | 0a3fb38bc728c11654810d426819853d86ae609c (diff) | |
download | scummvm-rg350-21b6b81f16abc4af90a7e21974d51ad7a984f1ed.tar.gz scummvm-rg350-21b6b81f16abc4af90a7e21974d51ad7a984f1ed.tar.bz2 scummvm-rg350-21b6b81f16abc4af90a7e21974d51ad7a984f1ed.zip |
SCI: A separate implementation is needed for syncStringHeap() for SCI3
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 404bea799d..7c41e18bec 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -467,7 +467,7 @@ void Script::syncStringHeap(Common::Serializer &s) { break; } while (1); - } else { + } else if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1){ // Strings in SCI1.1 come after the object instances byte *buf = _heapStart + 4 + READ_SCI11ENDIAN_UINT16(_heapStart + 2) * 2; @@ -477,6 +477,8 @@ void Script::syncStringHeap(Common::Serializer &s) { // Now, sync everything till the end of the buffer s.syncBytes(buf, _heapSize - (buf - _heapStart)); + } else if (getSciVersion() == SCI_VERSION_3) { + warning("TODO: syncStringHeap(): Implement SCI3 variant"); } } |