diff options
-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; |