Skip to content

Commit

Permalink
SHERLOCK: Cleanup for Debugger class
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 9, 2015
1 parent 5d41f0f commit 4950dea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions engines/sherlock/debugger.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions engines/sherlock/debugger.h
Expand Up @@ -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() {}
Expand Down

0 comments on commit 4950dea

Please sign in to comment.