aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/touche.cpp
diff options
context:
space:
mode:
authorTravis Howell2010-06-17 13:42:02 +0000
committerTravis Howell2010-06-17 13:42:02 +0000
commit45b23601e77d816415cccd7cd73f487d3a0f485b (patch)
tree3e4a977f0f243a215c88ca15d31e473b8db3263a /engines/touche/touche.cpp
parent0e365131ac58b7504e9e16b08a8b3125b6b37027 (diff)
downloadscummvm-rg350-45b23601e77d816415cccd7cd73f487d3a0f485b.tar.gz
scummvm-rg350-45b23601e77d816415cccd7cd73f487d3a0f485b.tar.bz2
scummvm-rg350-45b23601e77d816415cccd7cd73f487d3a0f485b.zip
Add detection of original directory structure for Touche.
svn-id: r49929
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r--engines/touche/touche.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 187e685d06..2dc8b76b4f 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -28,6 +28,8 @@
#include "common/debug-channels.h"
#include "common/events.h"
#include "common/EventRecorder.h"
+#include "common/file.h"
+#include "common/fs.h"
#include "common/system.h"
#include "engines/util.h"
@@ -70,6 +72,10 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language)
_menuRedrawCounter = 0;
memset(_paletteBuffer, 0, sizeof(_paletteBuffer));
+ const Common::FSNode gameDataDir(ConfMan.get("path"));
+
+ SearchMan.addSubDirectoryMatching(gameDataDir, "database");
+
DebugMan.addDebugChannel(kDebugEngine, "Engine", "Engine debug level");
DebugMan.addDebugChannel(kDebugGraphics, "Graphics", "Graphics debug level");
DebugMan.addDebugChannel(kDebugResource, "Resource", "Resource debug level");