GOB: Refactor to use Engine debugger

This commit is contained in:
Paul Gilbert 2020-02-08 21:31:55 -08:00 committed by Filippos Karapetis
parent fb9d51be0e
commit c99c187983
4 changed files with 2 additions and 12 deletions

View File

@ -150,12 +150,12 @@ GobEngine::GobEngine(OSystem *syst) : Engine(syst), _rnd("gob") {
_copyProtection = ConfMan.getBool("copy_protection");
_console = new GobConsole(this);
setDebugger(_console);
}
GobEngine::~GobEngine() {
deinitGameParts();
delete _console;
//_console is deleted by Engine
}
const char *GobEngine::getLangDesc(int16 language) const {

View File

@ -257,8 +257,6 @@ public:
void setTrueColor(bool trueColor);
GUI::Debugger *getDebugger() override { return _console; }
const Graphics::PixelFormat &getPixelFormat() const;
GobEngine(OSystem *syst);

View File

@ -983,10 +983,6 @@ void Penetration::checkInput() {
_keys[kKeyRight] = true;
else if (event.kbd.keycode == Common::KEYCODE_SPACE)
_keys[kKeySpace] = true;
else if (event.kbd.keycode == Common::KEYCODE_d) {
_vm->getDebugger()->attach();
_vm->getDebugger()->onFrame();
}
break;
case Common::EVENT_KEYUP:

View File

@ -126,10 +126,6 @@ void Util::processInput(bool scroll) {
_fastMode ^= 2;
else if (event.kbd.keycode == Common::KEYCODE_p)
_vm->pauseGame();
else if (event.kbd.keycode == Common::KEYCODE_d) {
_vm->getDebugger()->attach();
_vm->getDebugger()->onFrame();
}
break;
}
addKeyToBuffer(event.kbd);