mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
GOB: Refactor to use Engine debugger
This commit is contained in:
parent
fb9d51be0e
commit
c99c187983
@ -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 {
|
||||
|
@ -257,8 +257,6 @@ public:
|
||||
|
||||
void setTrueColor(bool trueColor);
|
||||
|
||||
GUI::Debugger *getDebugger() override { return _console; }
|
||||
|
||||
const Graphics::PixelFormat &getPixelFormat() const;
|
||||
|
||||
GobEngine(OSystem *syst);
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user