aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());