diff options
author | Paul Gilbert | 2019-05-18 13:26:57 -1000 |
---|---|---|
committer | Paul Gilbert | 2019-05-24 18:21:06 -0700 |
commit | 3d9e03af554814bee10f112c2efa0b7f0b722489 (patch) | |
tree | f174c8004d0c554dae124df63d874f78d2e88e5d /engines/glk/tads/tads.cpp | |
parent | fcb2592ec24f983c49f1e2e1b4f41cc9659a9229 (diff) | |
download | scummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.tar.gz scummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.tar.bz2 scummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.zip |
GLK: TADS2: Soooo much more implementation
Diffstat (limited to 'engines/glk/tads/tads.cpp')
-rw-r--r-- | engines/glk/tads/tads.cpp | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/engines/glk/tads/tads.cpp b/engines/glk/tads/tads.cpp index 5dc400b164..61e13cdb15 100644 --- a/engines/glk/tads/tads.cpp +++ b/engines/glk/tads/tads.cpp @@ -21,44 +21,18 @@ */ #include "glk/tads/tads.h" +#include "glk/tads/os_glk.h" #include "common/config-manager.h" #include "common/translation.h" namespace Glk { namespace TADS { -TADS::TADS(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc) { - /* - * GLK Initialization - */ - - // Open the story window - story_win = glk_window_open(0, 0, 0, wintype_TextBuffer, 0); - if (!story_win) - error("fatal: could not open window!\n"); - - // get default colors for main window - if (!glk_style_measure(story_win, style_Normal, stylehint_TextColor, &mainfg)) - mainfg = 0; - - if (!glk_style_measure(story_win, style_Normal, stylehint_BackColor, &mainbg)) - mainbg = 0; - - // get default colors for status window - status_win = glk_window_open(story_win, winmethod_Above | winmethod_Fixed, 1, - wintype_TextGrid, 0); +TADS *g_vm; - if (!glk_style_measure(status_win, style_Normal, stylehint_TextColor, &statusfg)) - statusfg = 0; - - if (!glk_style_measure(status_win, style_Normal, stylehint_BackColor, &statusbg)) - statusbg = 0; - - // close status window; reopened on request - glk_window_close(status_win, 0); - status_win = nullptr; - - glk_set_window(story_win); +TADS::TADS(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc) { + g_vm = this; + os_init(nullptr, nullptr, 0, 0, 0); } Common::Error TADS::loadGameData(strid_t file) { |