diff options
author | Thierry Crozat | 2017-09-04 23:04:01 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:32 +0000 |
commit | 1cdede12ac1ee2edbf5651684e5b9c1b2f826a3d (patch) | |
tree | e0a86a3c1486c14e36aa002090e22eef0105b184 /engines | |
parent | ed7fa6f7d79933dc5cec6b7d4f2bc4080378ecc1 (diff) | |
download | scummvm-rg350-1cdede12ac1ee2edbf5651684e5b9c1b2f826a3d.tar.gz scummvm-rg350-1cdede12ac1ee2edbf5651684e5b9c1b2f826a3d.tar.bz2 scummvm-rg350-1cdede12ac1ee2edbf5651684e5b9c1b2f826a3d.zip |
SUPERNOVA: Properly handle loading saved game from launcher
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/supernova.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 17033dadd4..ad5d8af501 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -148,6 +148,12 @@ Common::Error SupernovaEngine::run() { CursorMan.replaceCursorPalette(initVGAPalette, 0, 16); CursorMan.showMouse(true); + int saveSlot = ConfMan.getInt("save_slot"); + if (saveSlot >= 0) { + if (loadGameState(saveSlot).getCode() != Common::kNoError) + error("Failed to load save game from slot %i", saveSlot); + } + while (!shouldQuit()) { uint32 start = _system->getMillis(); updateEvents(); |