aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-01 11:26:25 -0500
committerPaul Gilbert2014-02-01 11:26:25 -0500
commitcbebf203d673d68112b9bcee5dea8bee0b755a70 (patch)
tree2aa4cc6ba27bd03028f8dc478033f73662b1ed7d /engines/voyeur
parentf6477270b031d8ab9f4c506d8cf8a335514cefa5 (diff)
downloadscummvm-rg350-cbebf203d673d68112b9bcee5dea8bee0b755a70.tar.gz
scummvm-rg350-cbebf203d673d68112b9bcee5dea8bee0b755a70.tar.bz2
scummvm-rg350-cbebf203d673d68112b9bcee5dea8bee0b755a70.zip
VOYEUR: Add debugger command for setting the time remaining
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/debugger.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/voyeur/debugger.cpp b/engines/voyeur/debugger.cpp
index c437bff03d..d114e83af2 100644
--- a/engines/voyeur/debugger.cpp
+++ b/engines/voyeur/debugger.cpp
@@ -47,7 +47,7 @@ bool Debugger::Cmd_Time(int argc, const char **argv) {
DebugPrintf("Current date/time is: %s, time is %s\n",
dtString.c_str(), _isTimeActive ? "on" : "off");
- DebugPrintf("Format: %s [on | off | 1..17]\n\n", argv[0]);
+ DebugPrintf("Format: %s [on | off | 1..17 | val <amount>]\n\n", argv[0]);
} else {
if (!strcmp(argv[1], "on")) {
_isTimeActive = true;
@@ -55,6 +55,13 @@ bool Debugger::Cmd_Time(int argc, const char **argv) {
} else if (!strcmp(argv[1], "off")) {
_isTimeActive = false;
DebugPrintf("Time is now off\n\n");
+ } else if (!strcmp(argv[1], "val")) {
+ if (argc < 3) {
+ DebugPrintf("Time remaining is currently %d.\n", _vm->_voy._RTVNum);
+ } else {
+ _vm->_voy._RTVNum = atoi(argv[2]);
+ DebugPrintf("Time remaining is now %d.\n", _vm->_voy._RTVNum);
+ }
} else {
int timeId = atoi(argv[1]);
if (timeId >= 1 && timeId <= 17) {