diff options
Diffstat (limited to 'engines/cge2/cge2.h')
-rw-r--r-- | engines/cge2/cge2.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h index 94263ac641..833cb66c72 100644 --- a/engines/cge2/cge2.h +++ b/engines/cge2/cge2.h @@ -35,6 +35,7 @@ #include "engines/advancedDetector.h" #include "common/system.h" #include "cge2/fileio.h" +#include "cge2/console.h" #include "audio/mixer.h" namespace CGE2 { @@ -113,6 +114,11 @@ struct SavegameHeader; #define kSavegameStrSize 12 #define kSavegameStr "SCUMMVM_CGE2" +// our engine debug channels +enum { + kCGE2DebugOpcode = 1 << 0, +}; + enum CallbackType { kNullCB = 0, kQGame, kXScene, kSoundSetVolume }; @@ -128,6 +134,10 @@ private: uint32 _lastFrame, _lastTick; void tick(); + CGE2Console *_console; + void init(); + void deinit(); + Common::String generateSaveName(int slot); void writeSavegameHeader(Common::OutSaveFile *out, SavegameHeader &header); void syncGame(Common::SeekableReadStream *readStream, Common::WriteStream *writeStream); @@ -143,6 +153,9 @@ public: virtual Common::Error saveGameState(int slot, const Common::String &desc); virtual Common::Error loadGameState(int slot); virtual Common::Error run(); + GUI::Debugger *getDebugger() { + return _console; + } static bool readSavegameHeader(Common::InSaveFile *in, SavegameHeader &header); bool showTitle(const char *name); @@ -314,9 +327,6 @@ public: Sprite *_vol[2]; EventManager *_eventManager; Map *_map; -private: - void init(); - void deinit(); }; } // End of namespace CGE2 |