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
|
@ -23,11 +23,12 @@
|
|||
#include "common/scummsys.h"
|
||||
#include "video/video_decoder.h"
|
||||
|
||||
#include "zvision/scripting/actions.h"
|
||||
|
||||
#include "zvision/zvision.h"
|
||||
#include "zvision/scripting/script_manager.h"
|
||||
#include "zvision/graphics/render_manager.h"
|
||||
#include "zvision/file/save_manager.h"
|
||||
#include "zvision/scripting/actions.h"
|
||||
#include "zvision/scripting/menu.h"
|
||||
#include "zvision/scripting/effects/timer_effect.h"
|
||||
#include "zvision/scripting/effects/music_effect.h"
|
||||
|
@ -797,6 +798,22 @@ bool ActionRandom::execute() {
|
|||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ActionRestoreGame
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ActionRestoreGame::ActionRestoreGame(ZVision *engine, int32 slotkey, const Common::String &line) :
|
||||
ResultAction(engine, slotkey) {
|
||||
char buf[128];
|
||||
sscanf(line.c_str(), "%s", buf);
|
||||
_fileName = Common::String(buf);
|
||||
}
|
||||
|
||||
bool ActionRestoreGame::execute() {
|
||||
_engine->getSaveManager()->loadGame(-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ActionRotateTo
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue