- improved timer information output in debugger

- fixed timer data loading

svn-id: r31215
This commit is contained in:
Johannes Schickel 2008-03-21 23:54:47 +00:00
parent 2a4aa9c379
commit 5107404089
3 changed files with 16 additions and 2 deletions

View file

@ -179,8 +179,9 @@ bool Debugger_v1::cmd_queryFlag(int argc, const char **argv) {
}
bool Debugger_v1::cmd_listTimers(int argc, const char **argv) {
DebugPrintf("Current time: %-8u\n", g_system->getMillis());
for (int i = 0; i < _vm->timer()->count(); i++)
DebugPrintf("Timer %-2i: Active: %-3s Countdown: %-6i\n", i, _vm->timer()->isEnabled(i) ? "Yes" : "No", _vm->timer()->getDelay(i));
DebugPrintf("Timer %-2i: Active: %-3s Countdown: %-6i %-8u\n", i, _vm->timer()->isEnabled(i) ? "Yes" : "No", _vm->timer()->getDelay(i), _vm->timer()->getNextRun(i));
return true;
}