diff options
author | Travis Howell | 2009-10-27 09:44:13 +0000 |
---|---|---|
committer | Travis Howell | 2009-10-27 09:44:13 +0000 |
commit | 3d80bb47a859e2508b77f1795941eefd248b4e90 (patch) | |
tree | a69d39e5c83d018aa5e4701e799945554458390d | |
parent | 64515d892c709867ca4984a5c02e48c9645b5684 (diff) | |
download | scummvm-rg350-3d80bb47a859e2508b77f1795941eefd248b4e90.tar.gz scummvm-rg350-3d80bb47a859e2508b77f1795941eefd248b4e90.tar.bz2 scummvm-rg350-3d80bb47a859e2508b77f1795941eefd248b4e90.zip |
Load/save the 16BitPalette data in PCE version of Loom.
svn-id: r45436
-rw-r--r-- | engines/scumm/saveload.cpp | 3 | ||||
-rw-r--r-- | engines/scumm/scumm.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index 6dd2ffc0a6..825c9fb777 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -1275,6 +1275,9 @@ void ScummEngine::saveOrLoad(Serializer *s) { // // Save/load palette data // + if (_16BitPalette) { + s->saveLoadArrayOf(_16BitPalette, 512, sizeof(_16BitPalette[0]), sleUint16); + } if (_shadowPaletteSize) { s->saveLoadArrayOf(_shadowPalette, _shadowPaletteSize, 1, sleByte); // _roomPalette didn't show up until V21 save games diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index e04649e1e9..3140ae9b9a 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -275,6 +275,7 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) memset(gfxUsageBits, 0, sizeof(gfxUsageBits)); _hePalettes = NULL; _hePaletteSlot = 0; + _16BitPalette = NULL; _shadowPalette = NULL; _shadowPaletteSize = 0; memset(_currentPalette, 0, sizeof(_currentPalette)); |