From 83d2f0c3e7a737648fe5062ed00745cd3d0d207b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 24 Feb 2008 12:33:20 +0000 Subject: Oops fix stupid copy&paste error... svn-id: r30950 --- engines/kyra/resource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') 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()); -- cgit v1.2.3