aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.h
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-22 18:07:06 +0100
committerJohannes Schickel2014-01-22 18:07:06 +0100
commit651e2808018d7ca8f36d05cda49e53229b0fd7dd (patch)
tree552bbd50ca89ebe11ef99f7e9f535c09d7e5e8d4 /engines/engine.h
parent1fa74e355cd95c0daec2c8fa0981668aa6446a8b (diff)
downloadscummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.tar.gz
scummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.tar.bz2
scummvm-rg350-651e2808018d7ca8f36d05cda49e53229b0fd7dd.zip
ENGINES: Introduce method Engine::initializePath which sets up SearchMan.
This replaces the hardcoded addition of the game path in runGame in base/main.cpp by an engine configurable one.
Diffstat (limited to 'engines/engine.h')
-rw-r--r--engines/engine.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/engine.h b/engines/engine.h
index 4f4223384a..33416dda44 100644
--- a/engines/engine.h
+++ b/engines/engine.h
@@ -37,6 +37,7 @@ class Error;
class EventManager;
class SaveFileManager;
class TimerManager;
+class FSNode;
}
namespace GUI {
class Debugger;
@@ -142,6 +143,16 @@ public:
virtual ~Engine();
/**
+ * Init SearchMan according to the game path.
+ *
+ * By default it adds the directory in non-flat mode with a depth of 4 as
+ * priority 0 to SearchMan.
+ *
+ * @param gamePath The base directory of the game data.
+ */
+ virtual void initializePath(const Common::FSNode &gamePath);
+
+ /**
* Init the engine and start its main loop.
* @return returns kNoError on success, else an error code.
*/