Load/save the 16BitPalette data in PCE version of Loom.

svn-id: r45436
This commit is contained in:
Travis Howell 2009-10-27 09:44:13 +00:00
parent 64515d892c
commit 3d80bb47a8
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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));