diff options
Diffstat (limited to 'engines/glk/level9/level9.cpp')
| -rw-r--r-- | engines/glk/level9/level9.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/level9/level9.cpp b/engines/glk/level9/level9.cpp index 6d8baa115e..be4ac2216d 100644 --- a/engines/glk/level9/level9.cpp +++ b/engines/glk/level9/level9.cpp @@ -21,15 +21,14 @@ */ #include "glk/level9/level9.h" +#include "glk/level9/level9_main.h" +#include "glk/level9/os_glk.h" namespace Glk { namespace Level9 { Level9 *g_vm = nullptr; -extern void gln_main(const char *filename); -extern int gln_startup_code(int argc, char *argv[]); - Level9::Level9(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc) { g_vm = this; } @@ -37,6 +36,7 @@ Level9::Level9(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, void Level9::runGame() { initialize(); + _gameFile.close(); gln_main(getFilename().c_str()); |
