From 4950deaf33dc46521e495d36b9d0f1933d007aa1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 9 May 2015 09:24:22 -0400 Subject: SHERLOCK: Cleanup for Debugger class --- engines/sherlock/debugger.cpp | 6 +++--- engines/sherlock/debugger.h | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'engines') 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 \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() {} -- cgit v1.2.3