mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
SWORD1: Refactor to use Engine debugger
This commit is contained in:
parent
3da28a4c25
commit
46a1f92ef6
@ -65,7 +65,7 @@ SwordEngine::SwordEngine(OSystem *syst)
|
||||
SearchMan.addSubDirectoryMatching(gameDataDir, "english"); // PSX Demo
|
||||
SearchMan.addSubDirectoryMatching(gameDataDir, "italian"); // PSX Demo
|
||||
|
||||
_console = new SwordConsole(this);
|
||||
setDebugger(new SwordConsole(this));
|
||||
|
||||
_mouseState = 0;
|
||||
_resMan = 0;
|
||||
@ -89,7 +89,6 @@ SwordEngine::~SwordEngine() {
|
||||
delete _mouse;
|
||||
delete _objectMan;
|
||||
delete _resMan;
|
||||
delete _console;
|
||||
}
|
||||
|
||||
Common::Error SwordEngine::init() {
|
||||
@ -692,12 +691,6 @@ uint8 SwordEngine::mainLoop() {
|
||||
_screen->fullRefresh();
|
||||
}
|
||||
|
||||
// Check for Debugger Activation
|
||||
if (_keyPressed.hasFlags(Common::KBD_CTRL) && _keyPressed.keycode == Common::KEYCODE_d) {
|
||||
this->getDebugger()->attach();
|
||||
this->getDebugger()->onFrame();
|
||||
}
|
||||
|
||||
_mouseState = 0;
|
||||
_keyPressed.reset();
|
||||
} while ((Logic::_scriptVars[SCREEN] == Logic::_scriptVars[NEW_SCREEN]) && (retCode == 0) && (!shouldQuit()));
|
||||
|
@ -108,8 +108,6 @@ protected:
|
||||
bool hasFeature(EngineFeature f) const override;
|
||||
void syncSoundSettings() override;
|
||||
|
||||
GUI::Debugger *getDebugger() override { return _console; }
|
||||
|
||||
Common::Error loadGameState(int slot) override;
|
||||
bool canLoadGameStateCurrently() override;
|
||||
Common::Error saveGameState(int slot, const Common::String &desc) override;
|
||||
@ -125,8 +123,6 @@ private:
|
||||
|
||||
void reinitRes(); //Reinits the resources after a GMM load
|
||||
|
||||
SwordConsole *_console;
|
||||
|
||||
uint8 mainLoop();
|
||||
|
||||
Common::Point _mouseCoord;
|
||||
|
Loading…
x
Reference in New Issue
Block a user