Revert "ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)"
This reverts commit 9f642074ba
, as it
broke the credits screen in ZGI.
This has been rewritten to use the common save code
This commit is contained in:
parent
899cf4813c
commit
21e9007d80
7 changed files with 48 additions and 14 deletions
|
@ -686,7 +686,7 @@ void ScriptManager::serialize(Common::WriteStream *stream) {
|
|||
stream->writeSint16LE(getStateValue(i));
|
||||
}
|
||||
|
||||
void ScriptManager::reset() {
|
||||
void ScriptManager::deserialize(Common::SeekableReadStream *stream) {
|
||||
// Clear out the current table values
|
||||
_globalState.clear();
|
||||
_globalStateFlags.clear();
|
||||
|
@ -706,10 +706,6 @@ void ScriptManager::reset() {
|
|||
_activeSideFx.clear();
|
||||
|
||||
_referenceTable.clear();
|
||||
}
|
||||
|
||||
void ScriptManager::deserialize(Common::SeekableReadStream *stream) {
|
||||
reset();
|
||||
|
||||
if (stream->readUint32BE() != MKTAG('Z', 'N', 'S', 'G') || stream->readUint32LE() != 4) {
|
||||
changeLocation('g', 'a', 'r', 'y', 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue