aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-09 09:24:22 -0400
committerPaul Gilbert2015-05-09 09:24:22 -0400
commit4950deaf33dc46521e495d36b9d0f1933d007aa1 (patch)
tree79769b65930ae6dd6c7032b647dee29bddffb0a7 /engines
parent5d41f0f9aa5d4df586949362fcedec447d1d6094 (diff)
downloadscummvm-rg350-4950deaf33dc46521e495d36b9d0f1933d007aa1.tar.gz
scummvm-rg350-4950deaf33dc46521e495d36b9d0f1933d007aa1.tar.bz2
scummvm-rg350-4950deaf33dc46521e495d36b9d0f1933d007aa1.zip
SHERLOCK: Cleanup for Debugger class
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/debugger.cpp6
-rw-r--r--engines/sherlock/debugger.h6
2 files changed, 7 insertions, 5 deletions
diff --git a/engines/sherlock/debugger.cpp b/engines/sherlock/debugger.cpp
index b3dac71d5e..ff9a8056b0 100644
--- a/engines/sherlock/debugger.cpp
+++ b/engines/sherlock/debugger.cpp
@@ -27,13 +27,13 @@ namespace Sherlock {
Debugger::Debugger(SherlockEngine *vm) : GUI::Debugger(), _vm(vm) {
registerCmd("continue", WRAP_METHOD(Debugger, cmdExit));
- registerCmd("scene", WRAP_METHOD(Debugger, cmd_scene));
+ registerCmd("scene", WRAP_METHOD(Debugger, cmdScene));
}
/**
* Converts a decimal or hexadecimal string into a number
*/
-static int strToInt(const char *s) {
+int Debugger::strToInt(const char *s) {
if (!*s)
// No string at all
return 0;
@@ -52,7 +52,7 @@ static int strToInt(const char *s) {
/**
* Switch to another scene
*/
-bool Debugger::cmd_scene(int argc, const char **argv) {
+bool Debugger::cmdScene(int argc, const char **argv) {
if (argc != 2) {
debugPrintf("Format: scene <room>\n");
return true;
diff --git a/engines/sherlock/debugger.h b/engines/sherlock/debugger.h
index 8c7291c9e6..fe77007975 100644
--- a/engines/sherlock/debugger.h
+++ b/engines/sherlock/debugger.h
@@ -33,8 +33,10 @@ class SherlockEngine;
class Debugger : public GUI::Debugger {
private:
SherlockEngine *_vm;
-protected:
- bool cmd_scene(int argc, const char **argv);
+
+ int strToInt(const char *s);
+
+ bool cmdScene(int argc, const char **argv);
public:
Debugger(SherlockEngine *vm);
virtual ~Debugger() {}