diff options
author | Jonathan Gray | 2003-08-24 06:57:32 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-08-24 06:57:32 +0000 |
commit | cf9ad3aee3d9b672ad46c9491955f42732d156e9 (patch) | |
tree | 245c2372d06162fa76a2b9d3d236a432b588e768 /sword2 | |
parent | d50c6f4ef86318295f598398ece9d47b8da778ac (diff) | |
download | scummvm-rg350-cf9ad3aee3d9b672ad46c9491955f42732d156e9.tar.gz scummvm-rg350-cf9ad3aee3d9b672ad46c9491955f42732d156e9.tar.bz2 scummvm-rg350-cf9ad3aee3d9b672ad46c9491955f42732d156e9.zip |
bring up the restore game menu when any -x param is specified, this is nicer than telling it to load a slot as it validates the saves and doesn't try to load a non existent save etc, its also similiar to what the original did (any command line params at all would load the restore menu)
svn-id: r9843
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/sword2.cpp | 5 | ||||
-rw-r--r-- | sword2/sword2.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index 649269b76b..3a57830b98 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -108,6 +108,7 @@ Sword2State::Sword2State(GameDetector *detector, OSystem *syst) _gameId = detector->_game.id; _game_name = strdup(detector->_gameFileName.c_str()); _bootParam = detector->_bootParam; + _saveSlot = detector->_save_slot; // Setup mixer if (!_mixer->bindToSystem(syst)) @@ -322,8 +323,10 @@ void Sword2State::go() //check for restore game on startup - at the mo any passed argument is good enough to trigger this // if (lpCmdLine[0]) //non zero - if (0) + if (_saveSlot != -1) { + // RestoreGame(_saveSlot); use traditional way for now... + Set_mouse(NORMAL_MOUSE_ID); if (!Restore_control()) // restore a game diff --git a/sword2/sword2.h b/sword2/sword2.h index e229376a63..6b4aaae7ea 100644 --- a/sword2/sword2.h +++ b/sword2/sword2.h @@ -66,6 +66,7 @@ class Sword2State : public Engine { private: bool _quit; uint32 _bootParam; + uint32 _saveSlot; }; extern Sword2State *g_sword2; |