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:
Filippos Karapetis 2015-01-10 22:03:15 +02:00
parent 899cf4813c
commit 21e9007d80
7 changed files with 48 additions and 14 deletions

View file

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