diff options
author | Strangerke | 2013-02-21 07:57:31 +0100 |
---|---|---|
committer | Strangerke | 2013-02-21 07:57:31 +0100 |
commit | a5e263cd0533409c8b718363ccd1c8f04a801db5 (patch) | |
tree | f244e577dde9737700a44cfb041a0bf49d9e8896 /engines/mortevielle | |
parent | fab337c61c551beea5c8181a0d83694755e3867d (diff) | |
download | scummvm-rg350-a5e263cd0533409c8b718363ccd1c8f04a801db5.tar.gz scummvm-rg350-a5e263cd0533409c8b718363ccd1c8f04a801db5.tar.bz2 scummvm-rg350-a5e263cd0533409c8b718363ccd1c8f04a801db5.zip |
MORTEVIELLE: Add two debug functions required to check the English translation
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/debugger.cpp | 17 | ||||
-rw-r--r-- | engines/mortevielle/debugger.h | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/engines/mortevielle/debugger.cpp b/engines/mortevielle/debugger.cpp index fc0e54ab6d..b0b9dc7d2c 100644 --- a/engines/mortevielle/debugger.cpp +++ b/engines/mortevielle/debugger.cpp @@ -27,8 +27,25 @@ namespace Mortevielle { Debugger::Debugger() : GUI::Debugger() { DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit)); + DCmd_Register("show_questions", WRAP_METHOD(Debugger, Cmd_showAllQuestions)); + DCmd_Register("reset_parano", WRAP_METHOD(Debugger, Cmd_resetParano)); } +bool Debugger::Cmd_showAllQuestions(int argc, const char **argv) { + for (int i = 1; i <= 10; ++i) + _vm->_coreVar._pctHintFound[i] = '*'; + + for (int i = 1; i <= 42; ++i) + _vm->_coreVar._availableQuestion[i] = '*'; + + return true; +} + +bool Debugger::Cmd_resetParano(int argc, const char **argv) { + _vm->_coreVar._faithScore = 0; + + return true; +} void Debugger::setParent(MortevielleEngine *vm) { _vm = vm; } diff --git a/engines/mortevielle/debugger.h b/engines/mortevielle/debugger.h index 57ca94e78b..9041d90110 100644 --- a/engines/mortevielle/debugger.h +++ b/engines/mortevielle/debugger.h @@ -34,6 +34,10 @@ class Debugger : public GUI::Debugger { private: MortevielleEngine *_vm; +protected: + bool Cmd_showAllQuestions(int argc, const char **argv); + bool Cmd_resetParano(int argc, const char **argv); + public: Debugger(); virtual ~Debugger() {} |