diff options
author | Sven Hesse | 2012-01-29 00:00:04 +0100 |
---|---|---|
committer | Sven Hesse | 2012-01-29 00:10:11 +0100 |
commit | 2f7ae1109bb94ab9b0bf1fe20d554c7124eb8465 (patch) | |
tree | f13ab5ba5722ffdf3a1620c1d267cde08e270c57 /engines/gob/inter_geisha.cpp | |
parent | caeae1a7d66843823a31bb99e081da0165a18a22 (diff) | |
download | scummvm-rg350-2f7ae1109bb94ab9b0bf1fe20d554c7124eb8465.tar.gz scummvm-rg350-2f7ae1109bb94ab9b0bf1fe20d554c7124eb8465.tar.bz2 scummvm-rg350-2f7ae1109bb94ab9b0bf1fe20d554c7124eb8465.zip |
GOB: Add a cheat debug command
- Cheat the Diving minigame to a win
- Get the mastermind solution
Diffstat (limited to 'engines/gob/inter_geisha.cpp')
-rw-r--r-- | engines/gob/inter_geisha.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/gob/inter_geisha.cpp b/engines/gob/inter_geisha.cpp index 1f2a7fab7f..7f21ceb91d 100644 --- a/engines/gob/inter_geisha.cpp +++ b/engines/gob/inter_geisha.cpp @@ -34,6 +34,7 @@ #include "gob/game.h" #include "gob/draw.h" #include "gob/video.h" +#include "gob/cheater.h" #include "gob/save/saveload.h" #include "gob/sound/sound.h" #include "gob/sound/sounddesc.h" @@ -53,9 +54,17 @@ Inter_Geisha::Inter_Geisha(GobEngine *vm) : Inter_v1(vm), _diving = new Geisha::Diving(vm); _penetration = new Geisha::Penetration(vm); + + _cheater = new Cheater_Geisha(vm, _diving); + + _vm->_console->registerCheater(_cheater); } Inter_Geisha::~Inter_Geisha() { + _vm->_console->unregisterCheater(); + + delete _cheater; + delete _penetration; delete _diving; } |