diff options
Diffstat (limited to 'base/engine.h')
-rw-r--r-- | base/engine.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/engine.h b/base/engine.h index e4055edb22..85798c219b 100644 --- a/base/engine.h +++ b/base/engine.h @@ -34,6 +34,9 @@ namespace Common { class SaveFileManager; class TimerManager; } +namespace GUI { + class Debugger; +} class Engine { public: @@ -80,6 +83,12 @@ public: /** Initialized graphics and shows error message. */ void GUIErrorMessage(const Common::String msg); + + /** + * Return the engine's debugger instance, if any. Used by error() to + * invoke the debugger when a severe error is reported. + */ + virtual GUI::Debugger *getDebugger() { return 0; } }; extern Engine *g_engine; |