From 0e90d6eae39363687a447e39d3ba0a4994f1800f Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Sun, 19 Aug 2018 19:56:52 +0200 Subject: MUTATIONOFJB: Use advanced detector. --- engines/mutationofjb/mutationofjb.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/mutationofjb/mutationofjb.cpp') diff --git a/engines/mutationofjb/mutationofjb.cpp b/engines/mutationofjb/mutationofjb.cpp index 8841a30fd0..376c02427c 100644 --- a/engines/mutationofjb/mutationofjb.cpp +++ b/engines/mutationofjb/mutationofjb.cpp @@ -22,10 +22,12 @@ #include "common/scummsys.h" +#include "common/config-manager.h" #include "common/debug.h" #include "common/error.h" #include "common/system.h" #include "common/events.h" +#include "common/fs.h" #include "graphics/screen.h" #include "graphics/cursorman.h" @@ -45,13 +47,13 @@ MutationOfJBEngine::MutationOfJBEngine(OSystem *syst) _screen(nullptr), _mapObjectId(0), _cursorState(CURSOR_IDLE) { - debug("MutationOfJBEngine::MutationOfJBEngine"); -} -MutationOfJBEngine::~MutationOfJBEngine() { - debug("MutationOfJBEngine::~MutationOfJBEngine"); + const Common::FSNode gameDataDir(ConfMan.get("path")); + SearchMan.addSubDirectoryMatching(gameDataDir, "data"); } +MutationOfJBEngine::~MutationOfJBEngine() {} + void MutationOfJBEngine::setupCursor() { const uint8 cursor[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -237,8 +239,6 @@ void MutationOfJBEngine::updateCursorHitTest(int16 x, int16 y) { } Common::Error MutationOfJBEngine::run() { - debug("MutationOfJBEngine::run"); - initGraphics(320, 200); _console = new Console(this); -- cgit v1.2.3