mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 05:01:43 +00:00
PARALLACTION: Refactor to use Engine debugger
This commit is contained in:
parent
7a2dc70d20
commit
e8dc9b3747
@ -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) {
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user