From 85816c8a54d77423c6400e41da93f62fe1f948ff Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 2 Jan 2019 23:13:13 -0800 Subject: GLK: Make a _gameFile field in the base Glk engine --- engines/glk/scott/scott.cpp | 4 ++-- engines/glk/scott/scott.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/glk/scott') diff --git a/engines/glk/scott/scott.cpp b/engines/glk/scott/scott.cpp index 640679c5f3..b918f8cda2 100644 --- a/engines/glk/scott/scott.cpp +++ b/engines/glk/scott/scott.cpp @@ -35,7 +35,7 @@ Scott::Scott(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, g Common::fill(&_roomSaved[0], &_roomSaved[16], 0); } -void Scott::runGame(Common::SeekableReadStream *gameFile) { +void Scott::runGame() { int vb, no; initialize(); @@ -70,7 +70,7 @@ void Scott::runGame(Common::SeekableReadStream *gameFile) { _saveSlot = ConfMan.hasKey("save_slot") ? ConfMan.getInt("save_slot") : -1; // Load the game - loadDatabase(gameFile, (_options & DEBUGGING) ? 1 : 0); + loadDatabase(&_gameFile, (_options & DEBUGGING) ? 1 : 0); // Main game loop while (!shouldQuit()) { diff --git a/engines/glk/scott/scott.h b/engines/glk/scott/scott.h index b490fd6412..4739e9470a 100644 --- a/engines/glk/scott/scott.h +++ b/engines/glk/scott/scott.h @@ -174,7 +174,7 @@ public: /** * Execute the game */ - virtual void runGame(Common::SeekableReadStream *gameFile) override; + virtual void runGame() override; /** * Load a savegame from the passed stream -- cgit v1.2.3