aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/mutationofjb.cpp
diff options
context:
space:
mode:
authorĽubomír Remák2018-08-19 19:56:52 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit0e90d6eae39363687a447e39d3ba0a4994f1800f (patch)
tree2697d0e310dfe74fe42e0732b560d9ab69f47129 /engines/mutationofjb/mutationofjb.cpp
parent696b61c14626495fd01ffbacc309a2f8f5db4069 (diff)
downloadscummvm-rg350-0e90d6eae39363687a447e39d3ba0a4994f1800f.tar.gz
scummvm-rg350-0e90d6eae39363687a447e39d3ba0a4994f1800f.tar.bz2
scummvm-rg350-0e90d6eae39363687a447e39d3ba0a4994f1800f.zip
MUTATIONOFJB: Use advanced detector.
Diffstat (limited to 'engines/mutationofjb/mutationofjb.cpp')
-rw-r--r--engines/mutationofjb/mutationofjb.cpp12
1 files changed, 6 insertions, 6 deletions
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);