From 919092e5fcd0389b4cbd862e9e8cceab202e6741 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 16 Sep 2006 16:58:27 +0000 Subject: Overhaul of the debugger code * Moved Common::Debuggger to GUI::Debugger (mainly to satisfy linker restrictions) * Change the base Debugger class to *not* be a template class anymore; instead, a thin (template based) wrapper class is used to hook up debugger commands * Removed duplicate Cmd_Exit and Cmd_Help methods in favor of a single version of each in GUI::Debugger * New Cmd_Help doesn't word wrap after 39/78 chars, but rather queries the console to determine when to wrap * Debugger::preEnter and postEnter aren't pure virtual anymore svn-id: r23890 --- engines/agi/console.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/agi/console.h') diff --git a/engines/agi/console.h b/engines/agi/console.h index c94a9099e5..e0f108afce 100644 --- a/engines/agi/console.h +++ b/engines/agi/console.h @@ -25,7 +25,7 @@ #ifndef AGI_CONSOLE_H #define AGI_CONSOLE_H -#include "common/debugger.h" +#include "gui/debugger.h" namespace Agi { @@ -41,7 +41,7 @@ struct agi_debug { int ignoretriggers; }; -class Console : public Common::Debugger { +class Console : public GUI::Debugger { public: Console(AgiEngine *vm); virtual ~Console(void); @@ -51,8 +51,6 @@ protected: virtual void postEnter(); private: - bool Cmd_Exit(int argc, const char **argv); - bool Cmd_Help(int argc, const char **argv); bool Cmd_SetVar(int argc, const char **argv); bool Cmd_SetFlag(int argc, const char **argv); bool Cmd_SetObj(int argc, const char **argv); -- cgit v1.2.3