mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
Added debugger command to list the birthstone gems.
svn-id: r29077
This commit is contained in:
parent
a8112e3857
commit
3c5d8c4031
@ -46,6 +46,7 @@ Debugger_v1::Debugger_v1(KyraEngine_v1 *vm)
|
||||
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 @@ bool Debugger_v1::cmd_giveItem(int argc, const char **argv) {
|
||||
|
||||
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
|
||||
|
||||
|
@ -58,6 +58,7 @@ protected:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user