[Scummvm-cvs-logs] SF.net SVN: scummvm: [29077] scummvm/trunk/engines/kyra
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Mon Sep 24 01:00:55 CEST 2007
Revision: 29077
http://scummvm.svn.sourceforge.net/scummvm/?rev=29077&view=rev
Author: lordhoto
Date: 2007-09-23 16:00:54 -0700 (Sun, 23 Sep 2007)
Log Message:
-----------
Added debugger command to list the birthstone gems.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/debugger.cpp
scummvm/trunk/engines/kyra/debugger.h
Modified: scummvm/trunk/engines/kyra/debugger.cpp
===================================================================
--- scummvm/trunk/engines/kyra/debugger.cpp 2007-09-23 22:47:49 UTC (rev 29076)
+++ scummvm/trunk/engines/kyra/debugger.cpp 2007-09-23 23:00:54 UTC (rev 29077)
@@ -46,6 +46,7 @@
DCmd_Register("timers", WRAP_METHOD(Debugger_v1, cmd_listTimers));
DCmd_Register("settimercountdown", WRAP_METHOD(Debugger_v1, cmd_setTimerCountdown));
DCmd_Register("give", WRAP_METHOD(Debugger_v1, cmd_giveItem));
+ DCmd_Register("birthstones", WRAP_METHOD(Debugger_v1, cmd_listBirthstones));
}
void Debugger_v1::preEnter() {
@@ -179,5 +180,13 @@
return true;
}
+
+bool Debugger_v1::cmd_listBirthstones(int argc, const char **argv) {
+ DebugPrintf("Needed Birthstone gems:\n");
+ for (int i = 0; i < ARRAYSIZE(_vm->_birthstoneGemTable); ++i)
+ DebugPrintf("%-2d '%s'\n", _vm->_birthstoneGemTable[i], _vm->_itemList[_vm->_birthstoneGemTable[i]]);
+ return true;
+}
+
} // End of namespace Kyra
Modified: scummvm/trunk/engines/kyra/debugger.h
===================================================================
--- scummvm/trunk/engines/kyra/debugger.h 2007-09-23 22:47:49 UTC (rev 29076)
+++ scummvm/trunk/engines/kyra/debugger.h 2007-09-23 23:00:54 UTC (rev 29077)
@@ -58,6 +58,7 @@
bool cmd_listTimers(int argc, const char **argv);
bool cmd_setTimerCountdown(int argc, const char **argv);
bool cmd_giveItem(int argc, const char **argv);
+ bool cmd_listBirthstones(int argc, const char **argv);
};
} // End of namespace Kyra
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list