mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-11 12:18:05 +00:00
SCI: some changes to kPalVary saving
still needs to get tested svn-id: r51196
This commit is contained in:
parent
3aa4f76ee4
commit
15eebdb061
@ -637,17 +637,20 @@ void GfxPalette::saveLoadWithSerializer(Common::Serializer &s) {
|
||||
palVaryRemoveTimer();
|
||||
|
||||
s.syncAsSint32LE(_palVaryResourceId);
|
||||
_palVaryOriginPalette.saveLoadWithSerializer(s);
|
||||
_palVaryTargetPalette.saveLoadWithSerializer(s);
|
||||
s.syncAsSint16LE(_palVaryStep);
|
||||
s.syncAsSint16LE(_palVaryStepStop);
|
||||
s.syncAsSint16LE(_palVaryDirection);
|
||||
s.syncAsUint16LE(_palVaryTicks);
|
||||
s.syncAsSint32LE(_palVaryPaused);
|
||||
s.syncAsSint32LE(_palVarySignal);
|
||||
if (_palVaryResourceId != -1) {
|
||||
_palVaryOriginPalette.saveLoadWithSerializer(s);
|
||||
_palVaryTargetPalette.saveLoadWithSerializer(s);
|
||||
s.syncAsSint16LE(_palVaryStep);
|
||||
s.syncAsSint16LE(_palVaryStepStop);
|
||||
s.syncAsSint16LE(_palVaryDirection);
|
||||
s.syncAsUint16LE(_palVaryTicks);
|
||||
s.syncAsSint32LE(_palVaryPaused);
|
||||
}
|
||||
|
||||
if (s.isLoading() && _palVaryResourceId != -1)
|
||||
if (s.isLoading() && _palVaryResourceId != -1) {
|
||||
_palVarySignal = 0;
|
||||
palVaryInstallTimer();
|
||||
}
|
||||
}
|
||||
|
||||
void SegManager::reconstructStack(EngineState *s) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user