aboutsummaryrefslogtreecommitdiff
path: root/scumm/debug.h
diff options
context:
space:
mode:
authorMax Horn2002-12-15 00:39:33 +0000
committerMax Horn2002-12-15 00:39:33 +0000
commitdf06e3f6fa78b489e2a0ecd5285deb8bdf416a9b (patch)
tree3b26ef7de290841074abd708a5856a00e535aeda /scumm/debug.h
parentf7b692dfbbcf73b7a43019f66e66bc7f3bd591d1 (diff)
downloadscummvm-rg350-df06e3f6fa78b489e2a0ecd5285deb8bdf416a9b.tar.gz
scummvm-rg350-df06e3f6fa78b489e2a0ecd5285deb8bdf416a9b.tar.bz2
scummvm-rg350-df06e3f6fa78b489e2a0ecd5285deb8bdf416a9b.zip
debugger can now use the console (experimental, and thus disabled by default)
svn-id: r5974
Diffstat (limited to 'scumm/debug.h')
-rw-r--r--scumm/debug.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/scumm/debug.h b/scumm/debug.h
index 4a5f8f9b4c..7256109245 100644
--- a/scumm/debug.h
+++ b/scumm/debug.h
@@ -23,7 +23,18 @@
class Scumm;
-struct ScummDebugger {
+//
+// HACK FIXME TODO - enable this for the PURELY EXPERIMENTAL console debug mode
+//
+//#define USE_CONSOLE 1
+
+
+class ScummDebugger {
+public:
+ void on_frame();
+ void attach(Scumm *s);
+
+protected:
Scumm *_s;
byte _command;
char *_parameters;
@@ -34,11 +45,10 @@ struct ScummDebugger {
char _cmd_buffer[256];
- void on_frame();
- bool do_command();
+ bool do_command(int cmd);
void enter();
int get_command();
- void attach(Scumm *s);
+ int parse_command(char *buf);
void detach();
void printActors(int act);
@@ -47,6 +57,10 @@ struct ScummDebugger {
void printBox(int box);
void printBoxes();
void boxTest(int box);
+
+#ifdef USE_CONSOLE
+ static bool ScummDebugger::debuggerInputCallback(ConsoleDialog *console, const char *input, void *refCon);
+#endif
};
#endif