aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge2/detection.cpp')
-rw-r--r--engines/cge2/detection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cge2/detection.cpp b/engines/cge2/detection.cpp
index 5a4f286d5b..d05dfffedc 100644
--- a/engines/cge2/detection.cpp
+++ b/engines/cge2/detection.cpp
@@ -157,13 +157,14 @@ const ADGameDescription *CGE2MetaEngine::fallbackDetect(const FileMap &allFiles,
if (!game)
return 0;
- SearchMan.clear();
- SearchMan.addDirectory(fslist.begin()->getParent().getPath(), fslist.begin()->getParent());
+ SearchMan.addDirectory("CGE2MetaEngine::fallbackDetect", fslist.begin()->getParent());
ResourceManager *resman;
resman = new ResourceManager();
bool result = resman->exist("CGE.SAY");
delete resman;
+ SearchMan.remove("CGE2MetaEngine::fallbackDetect");
+
if (!result)
return 0;