mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
LILLIPUT: Refactor to use Engine debugger
This commit is contained in:
parent
d3e88f72e5
commit
afa27aa7c5
@ -116,7 +116,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
|
||||
DebugMan.addDebugChannel(kDebugEngineTBC, "EngineTBC", "Engine debug level");
|
||||
DebugMan.addDebugChannel(kDebugScriptTBC, "ScriptTBC", "Script debug level");
|
||||
|
||||
_console = new LilliputConsole(this);
|
||||
setDebugger(new LilliputConsole(this));
|
||||
_rnd = 0;
|
||||
_mousePos = Common::Point(0, 0);
|
||||
_oldMousePos = Common::Point(0, 0);
|
||||
@ -263,16 +263,11 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
|
||||
|
||||
LilliputEngine::~LilliputEngine() {
|
||||
DebugMan.clearAllDebugChannels();
|
||||
delete _console;
|
||||
delete _soundHandler;
|
||||
delete _scriptHandler;
|
||||
delete _rnd;
|
||||
}
|
||||
|
||||
GUI::Debugger *LilliputEngine::getDebugger() {
|
||||
return _console;
|
||||
}
|
||||
|
||||
void LilliputEngine::update() {
|
||||
// update every 20 ms.
|
||||
int currentTime = _system->getMillis();
|
||||
|
@ -94,8 +94,6 @@ public:
|
||||
|
||||
OSystem *_system;
|
||||
|
||||
GUI::Debugger *getDebugger() override;
|
||||
|
||||
Common::RandomSource *_rnd;
|
||||
LilliputScript *_scriptHandler;
|
||||
LilliputSound *_soundHandler;
|
||||
@ -372,7 +370,6 @@ protected:
|
||||
private:
|
||||
static LilliputEngine *s_Engine;
|
||||
|
||||
LilliputConsole *_console;
|
||||
GameType _gameType;
|
||||
Common::Platform _platform;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user