diff options
author | Paul Gilbert | 2019-06-15 15:39:32 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-15 22:31:50 -0700 |
commit | b6542b78fcb2270ab29839f16c2eb5ac1d904c7e (patch) | |
tree | aac3c2816b36e7ac74f5af6bc304526c74359468 /engines | |
parent | acc90002f6937896e1f8063227b0423a653da0d2 (diff) | |
download | scummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.tar.gz scummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.tar.bz2 scummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.zip |
GLK: Fix debug channels setup
Diffstat (limited to 'engines')
-rw-r--r-- | engines/glk/glk.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/glk/glk.cpp b/engines/glk/glk.cpp index 5d99fc93b7..7155cd8190 100644 --- a/engines/glk/glk.cpp +++ b/engines/glk/glk.cpp @@ -50,6 +50,12 @@ GlkEngine::GlkEngine(OSystem *syst, const GlkGameDescription &gameDesc) : _copySelect(false), _terminated(false), _pcSpeaker(nullptr), gli_register_obj(nullptr), gli_unregister_obj(nullptr), gli_register_arr(nullptr), gli_unregister_arr(nullptr) { + // Set up debug channels + DebugMan.addDebugChannel(kDebugCore, "core", "Core engine debug level"); + DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts"); + DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling"); + DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling"); + g_vm = this; } @@ -68,12 +74,6 @@ GlkEngine::~GlkEngine() { } void GlkEngine::initialize() { - // Set up debug channels - DebugMan.addDebugChannel(kDebugCore, "core", "Core engine debug level"); - DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts"); - DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling"); - DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling"); - initGraphicsMode(); _conf = new Conf(getInterpreterType()); |