diff options
author | Paul Gilbert | 2012-05-22 00:29:27 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-22 00:29:27 +1000 |
commit | 6856fa2447195e8a65f6d5c7efa73543668d85b0 (patch) | |
tree | 1c59c37811cb65c98d8c3a8053f7dbae1610e5eb /engines/tony/tony.cpp | |
parent | 3f00f51ef3239b02e01fed80c9205835b2d654e9 (diff) | |
download | scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.tar.gz scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.tar.bz2 scummvm-rg350-6856fa2447195e8a65f6d5c7efa73543668d85b0.zip |
TONY: Implemented ScummVM debugger, with an initial 'scene' command
Diffstat (limited to 'engines/tony/tony.cpp')
-rw-r--r-- | engines/tony/tony.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp index b60a196ed1..e5988e7c9b 100644 --- a/engines/tony/tony.cpp +++ b/engines/tony/tony.cpp @@ -28,6 +28,7 @@ #include "common/file.h" #include "tony/tony.h" #include "tony/custom.h" +#include "tony/debugger.h" #include "tony/game.h" #include "tony/mpal/mpal.h" @@ -40,6 +41,7 @@ TonyEngine::TonyEngine(OSystem *syst, const TonyGameDescription *gameDesc) : Eng _vm = this; _loadSlotNumber = -1; + _debugger = new Debugger(); DebugMan.addDebugChannel(kTonyDebugAnimations, "animations", "Animations debugging"); DebugMan.addDebugChannel(kTonyDebugActions, "actions", "Actions debugging"); DebugMan.addDebugChannel(kTonyDebugSound, "sound", "Sound debugging"); @@ -60,6 +62,8 @@ TonyEngine::~TonyEngine() { // Reset the coroutine scheduler CoroScheduler.reset(); + + delete _debugger; } /** @@ -529,6 +533,9 @@ void TonyEngine::PlayProcess(CORO_PARAM, const void *param) { // Paint the frame onto the screen _vm->_window.Repaint(); + + // Signal the ScummVM debugger + _vm->_debugger->onFrame(); } CORO_END_CODE; |