aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/debugger.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-06-07 20:43:43 +0000
committerJohannes Schickel2009-06-07 20:43:43 +0000
commit5c233c447ba9656608b41fd0bd46edcc830e8b13 (patch)
treea7508b8ec523b7718a5641e5db24ce94c672e0d6 /engines/kyra/debugger.cpp
parentc7861cb65e7bcddc8bb7e51a7df30f6419dcc105 (diff)
downloadscummvm-rg350-5c233c447ba9656608b41fd0bd46edcc830e8b13.tar.gz
scummvm-rg350-5c233c447ba9656608b41fd0bd46edcc830e8b13.tar.bz2
scummvm-rg350-5c233c447ba9656608b41fd0bd46edcc830e8b13.zip
Remove LoLEngine::_gameFlags and convert all Lands of Lore code to use _flagsTable instead.
svn-id: r41351
Diffstat (limited to 'engines/kyra/debugger.cpp')
-rw-r--r--engines/kyra/debugger.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/engines/kyra/debugger.cpp b/engines/kyra/debugger.cpp
index a77ffee299..e0c2c0aa77 100644
--- a/engines/kyra/debugger.cpp
+++ b/engines/kyra/debugger.cpp
@@ -465,53 +465,6 @@ bool Debugger_HoF::cmd_passcodes(int argc, const char **argv) {
#ifdef ENABLE_LOL
Debugger_LoL::Debugger_LoL(LoLEngine *vm) : Debugger(vm), _vm(vm) {
}
-
-bool Debugger_LoL::cmd_listFlags(int argc, const char **argv) {
- for (int i = 0, p = 0; i < (int)sizeof(_vm->_gameFlags)*8; ++i, ++p) {
- const uint8 index = (i >> 4);
- const uint8 offset = i & 0xF;
-
- DebugPrintf("(%-3i): %-2i", i, (_vm->_gameFlags[index] >> offset) & 1);
- if (p == 5) {
- DebugPrintf("\n");
- p -= 6;
- }
- }
- DebugPrintf("\n");
- return true;
-}
-
-bool Debugger_LoL::cmd_toggleFlag(int argc, const char **argv) {
- if (argc > 1) {
- uint flag = atoi(argv[1]);
-
- const uint8 index = (flag >> 4);
- const uint8 offset = flag & 0xF;
-
- _vm->_gameFlags[index] ^= _vm->_gameFlags[index] & (1 << offset);
-
- DebugPrintf("Flag %i is now %i\n", flag, (_vm->_gameFlags[index] >> offset) & 1);
- } else {
- DebugPrintf("Syntax: toggleflag <flag>\n");
- }
-
- return true;
-}
-
-bool Debugger_LoL::cmd_queryFlag(int argc, const char **argv) {
- if (argc > 1) {
- uint flag = atoi(argv[1]);
-
- const uint8 index = (flag >> 4);
- const uint8 offset = flag & 0xF;
-
- DebugPrintf("Flag %i is %i\n", flag, (_vm->_gameFlags[index] >> offset) & 1);
- } else {
- DebugPrintf("Syntax: queryflag <flag>\n");
- }
-
- return true;
-}
#endif // ENABLE_LOL
} // End of namespace Kyra