aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/glk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-15 15:39:32 -0700
committerPaul Gilbert2019-06-15 22:31:50 -0700
commitb6542b78fcb2270ab29839f16c2eb5ac1d904c7e (patch)
treeaac3c2816b36e7ac74f5af6bc304526c74359468 /engines/glk/glk.cpp
parentacc90002f6937896e1f8063227b0423a653da0d2 (diff)
downloadscummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.tar.gz
scummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.tar.bz2
scummvm-rg350-b6542b78fcb2270ab29839f16c2eb5ac1d904c7e.zip
GLK: Fix debug channels setup
Diffstat (limited to 'engines/glk/glk.cpp')
-rw-r--r--engines/glk/glk.cpp12
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());