mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 20:15:42 +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();
|
palVaryRemoveTimer();
|
||||||
|
|
||||||
s.syncAsSint32LE(_palVaryResourceId);
|
s.syncAsSint32LE(_palVaryResourceId);
|
||||||
_palVaryOriginPalette.saveLoadWithSerializer(s);
|
if (_palVaryResourceId != -1) {
|
||||||
_palVaryTargetPalette.saveLoadWithSerializer(s);
|
_palVaryOriginPalette.saveLoadWithSerializer(s);
|
||||||
s.syncAsSint16LE(_palVaryStep);
|
_palVaryTargetPalette.saveLoadWithSerializer(s);
|
||||||
s.syncAsSint16LE(_palVaryStepStop);
|
s.syncAsSint16LE(_palVaryStep);
|
||||||
s.syncAsSint16LE(_palVaryDirection);
|
s.syncAsSint16LE(_palVaryStepStop);
|
||||||
s.syncAsUint16LE(_palVaryTicks);
|
s.syncAsSint16LE(_palVaryDirection);
|
||||||
s.syncAsSint32LE(_palVaryPaused);
|
s.syncAsUint16LE(_palVaryTicks);
|
||||||
s.syncAsSint32LE(_palVarySignal);
|
s.syncAsSint32LE(_palVaryPaused);
|
||||||
|
}
|
||||||
|
|
||||||
if (s.isLoading() && _palVaryResourceId != -1)
|
if (s.isLoading() && _palVaryResourceId != -1) {
|
||||||
|
_palVarySignal = 0;
|
||||||
palVaryInstallTimer();
|
palVaryInstallTimer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SegManager::reconstructStack(EngineState *s) {
|
void SegManager::reconstructStack(EngineState *s) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user