diff options
author | Paul Gilbert | 2009-02-11 10:03:01 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-02-11 10:03:01 +0000 |
commit | c2afb25ec556b78947d7caa47a24f8db10f529db (patch) | |
tree | 6e571d893c3e2f12a3ee8bc52b54308749277149 /engines/cruise/cruise_main.cpp | |
parent | 41eaf2c575d79f80303a96dde867433abd40dbd9 (diff) | |
download | scummvm-rg350-c2afb25ec556b78947d7caa47a24f8db10f529db.tar.gz scummvm-rg350-c2afb25ec556b78947d7caa47a24f8db10f529db.tar.bz2 scummvm-rg350-c2afb25ec556b78947d7caa47a24f8db10f529db.zip |
Added debugger console
svn-id: r36259
Diffstat (limited to 'engines/cruise/cruise_main.cpp')
-rw-r--r-- | engines/cruise/cruise_main.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/engines/cruise/cruise_main.cpp b/engines/cruise/cruise_main.cpp index ada2c49bc1..7e6d602079 100644 --- a/engines/cruise/cruise_main.cpp +++ b/engines/cruise/cruise_main.cpp @@ -27,6 +27,7 @@ #include "common/events.h" #include "common/system.h" // for g_system->getEventManager() +#include "cruise/cruise.h" #include "cruise/cruise_main.h" #include "cruise/cell.h" #include "cruise/staticres.h" @@ -747,32 +748,6 @@ void *allocAndZero(int size) { return ptr; } -const char *getObjectName(int index, const char *string) { - const char *ptr = string; - - if (!string) - return NULL; - - int i = 0; -// int j = 0; - - while (i < index) { - ptr += strlen(ptr) + 1; - i++; - } - return ptr; -} - -int getObjectClass(int overlayIdx, int objIdx) { - objDataStruct *pObjectData = getObjectDataFromOverlay(overlayIdx, objIdx); - - if (pObjectData) { - return pObjectData->_class; - } else { - return -11; - } -} - void buildInventory(int X, int Y) { menuStruct *pMenu; @@ -1682,6 +1657,7 @@ void manageEvents() { if (event.kbd.flags == Common::KBD_CTRL) { if (event.kbd.keycode == Common::KEYCODE_d) { // Start the debugger + _vm->getDebugger()->attach(); keyboardCode = Common::KEYCODE_INVALID; } else if (event.kbd.keycode == Common::KEYCODE_f) { bFastMode = !bFastMode; |