PARALLACTION: Refactor to use Engine debugger

This commit is contained in:
Paul Gilbert 2020-02-08 22:21:32 -08:00 committed by Filippos Karapetis
parent 7a2dc70d20
commit e8dc9b3747
3 changed files with 1 additions and 17 deletions

View File

@ -115,9 +115,6 @@ void Input::readInput() {
_hasKeyPressEvent = true;
_keyPressed = e.kbd;
if (e.kbd.hasFlags(Common::KBD_CTRL) && e.kbd.keycode == Common::KEYCODE_d)
_vm->_debugger->attach();
updateMousePos = false;
break;
@ -151,11 +148,6 @@ void Input::readInput() {
if (updateMousePos) {
setCursorPos(e.mouse);
}
_vm->_debugger->onFrame();
return;
}
bool Input::getLastKeyDown(uint16 &ascii) {

View File

@ -67,7 +67,6 @@ Parallaction::Parallaction(OSystem *syst, const PARALLACTIONGameDescription *gam
_gfx = 0;
_disk = 0;
_input = 0;
_debugger = 0;
_saveLoad = 0;
_menuHelper = 0;
_soundMan = 0;
@ -91,7 +90,6 @@ Parallaction::Parallaction(OSystem *syst, const PARALLACTIONGameDescription *gam
}
Parallaction::~Parallaction() {
delete _debugger;
delete _globalFlagsNames;
delete _callableNames;
delete _cmdExec;
@ -141,7 +139,7 @@ Common::Error Parallaction::init() {
_gfx = new Gfx(this);
_debugger = new Debugger(this);
setDebugger(new Debugger(this));
_menuHelper = 0;
@ -154,10 +152,6 @@ void Parallaction::pauseEngineIntern(bool pause) {
}
}
GUI::Debugger *Parallaction::getDebugger() {
return _debugger;
}
void Parallaction::updateView() {
if ((g_engineFlags & kEnginePauseJobs) && (_input->_inputMode != Input::kInputModeInventory)) {

View File

@ -273,7 +273,6 @@ public:
bool hasFeature(EngineFeature f) const override;
void pauseEngineIntern(bool pause) override;
GUI::Debugger *getDebugger() override;
// info
int32 _screenWidth;
@ -285,7 +284,6 @@ public:
Gfx *_gfx;
Disk *_disk;
Input *_input;
Debugger *_debugger;
SaveLoad *_saveLoad;
MenuInputHelper *_menuHelper;
Common::RandomSource _rnd;