aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-02-24 12:33:20 +0000
committerJohannes Schickel2008-02-24 12:33:20 +0000
commit83d2f0c3e7a737648fe5062ed00745cd3d0d207b (patch)
treea4257f8ace4a64311fb6bf3c7518ef3e95588f57
parentcb36b056ba1537ad69c08ed51ee110f2fdb73f0a (diff)
downloadscummvm-rg350-83d2f0c3e7a737648fe5062ed00745cd3d0d207b.tar.gz
scummvm-rg350-83d2f0c3e7a737648fe5062ed00745cd3d0d207b.tar.bz2
scummvm-rg350-83d2f0c3e7a737648fe5062ed00745cd3d0d207b.zip
Oops fix stupid copy&paste error...
svn-id: r30950
-rw-r--r--engines/kyra/resource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index 4ab24852d2..0f48dcdd07 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -275,13 +275,15 @@ void Resource::unloadAllPakFiles() {
temp.close();
}
}
+
+ detectFileTypes();
}
bool Resource::addSearchPath(const Common::String &path) {
if (path.empty())
return false;
- FilesystemNode dir(ConfMan.get("path"));
+ FilesystemNode dir(path);
if (!dir.exists() || !dir.isDirectory()) {
warning("invalid data path '%s'", dir.getPath().c_str());