From cb734285a50af24dd0453ab292855f038e936acf Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 8 Nov 2010 12:22:58 +0000 Subject: SWORD1: Added basic debugging console to engine SWORD1 does not currently use Debug Channels, but this does provide a base for adding them along with any other debugging commands. svn-id: r54140 --- engines/sword1/sword1.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/sword1/sword1.h') diff --git a/engines/sword1/sword1.h b/engines/sword1/sword1.h index f4e60e9fa3..592d2da6f4 100644 --- a/engines/sword1/sword1.h +++ b/engines/sword1/sword1.h @@ -30,6 +30,7 @@ #include "common/events.h" #include "common/util.h" #include "sword1/sworddefs.h" +#include "sword1/console.h" /** * This is the namespace of the Sword1 engine. @@ -106,6 +107,8 @@ protected: virtual bool hasFeature(EngineFeature f) const; virtual void syncSoundSettings(); + GUI::Debugger *getDebugger() { return _console; } + Common::Error loadGameState(int slot); bool canLoadGameStateCurrently(); Common::Error saveGameState(int slot, const char *desc); @@ -121,6 +124,8 @@ private: void reinitRes(); //Reinits the resources after a GMM load + SwordConsole *_console; + uint8 mainLoop(); Common::Point _mouseCoord; -- cgit v1.2.3