From 2e1192367779901e130bd3181ae3061b81116dee Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 4 Nov 2018 14:19:30 -0800 Subject: GLK: SCOTT: Added startup savegame loading --- engines/gargoyle/scott/scott.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- cgit v1.2.3