aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2004-06-28 00:06:31 +0000
committerMax Horn2004-06-28 00:06:31 +0000
commit53af3dc6700a6e7686fbf2e88cea283d6e335124 (patch)
treedcb1a4ffb7c717e5be3ddd909b604d5845d23597 /sword2
parentb1de21accbea8c333b24db91c47235bb5a8d14ef (diff)
downloadscummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.tar.gz
scummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.tar.bz2
scummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.zip
Enhanced default directory support in the File class; now one can specify arbitrary many default search directories
svn-id: r14095
Diffstat (limited to 'sword2')
-rw-r--r--sword2/sword2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index 873efcd851..e91ead0895 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -22,6 +22,7 @@
#include "base/gameDetector.h"
#include "base/plugins.h"
#include "common/config-manager.h"
+#include "common/file.h"
#include "sword2/sword2.h"
#include "sword2/console.h"
#include "sword2/controls.h"
@@ -101,6 +102,14 @@ Sword2Engine *g_sword2 = NULL;
Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst)
: Engine(syst) {
+ // Add default file directories
+ File::addDefaultDirectory(_gameDataPath + "/CLUSTERS/");
+ File::addDefaultDirectory(_gameDataPath + "/SWORD2/");
+ File::addDefaultDirectory(_gameDataPath + "/VIDEO/");
+ File::addDefaultDirectory(_gameDataPath + "/clusters/");
+ File::addDefaultDirectory(_gameDataPath + "/sword2/");
+ File::addDefaultDirectory(_gameDataPath + "/video/");
+
g_sword2 = this;
_debugger = NULL;
_sound = NULL;