aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-04 14:19:30 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit2e1192367779901e130bd3181ae3061b81116dee (patch)
tree3f4c561ee6b7ea37abb806a1c504b1451e0df5f7
parent0ea7f92b67a8ba18c2b0420390db50d0352995b2 (diff)
downloadscummvm-rg350-2e1192367779901e130bd3181ae3061b81116dee.tar.gz
scummvm-rg350-2e1192367779901e130bd3181ae3061b81116dee.tar.bz2
scummvm-rg350-2e1192367779901e130bd3181ae3061b81116dee.zip
GLK: SCOTT: Added startup savegame loading
-rw-r--r--engines/gargoyle/scott/scott.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/gargoyle/scott/scott.cpp b/engines/gargoyle/scott/scott.cpp
index 6f1b9efcf1..f92754f38f 100644
--- a/engines/gargoyle/scott/scott.cpp
+++ b/engines/gargoyle/scott/scott.cpp
@@ -68,6 +68,13 @@ Release 1.14, (c) 1993,1994,1995 Swansea University Computer Society.\n\
Distributed under the GNU software license\n\n");
loadDatabase(gameFile, (Options & DEBUGGING) ? 1 : 0);
+ // Check for savegame
+ if (ConfMan.hasKey("save_slot")) {
+ int saveSlot = ConfMan.getInt("save_slot");
+ if (saveSlot >= 0)
+ loadGameState(saveSlot);
+ }
+
while (!shouldQuit()) {
glk_tick();