aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-09-20 20:55:40 +0200
committerGitHub2017-09-20 20:55:40 +0200
commit7a58db8b92d58d81a3752140c7983de7595db13d (patch)
tree7580d3f0c7bbc7f5a3e476161644997a19876384 /engines/cge2
parent1515bb31a6fa802314836a9904756d7fcc840c69 (diff)
parent31089578129fc810188277eb546715e5409fb124 (diff)
downloadscummvm-rg350-7a58db8b92d58d81a3752140c7983de7595db13d.tar.gz
scummvm-rg350-7a58db8b92d58d81a3752140c7983de7595db13d.tar.bz2
scummvm-rg350-7a58db8b92d58d81a3752140c7983de7595db13d.zip
Merge pull request #1024 from wjp/detection_searchman
Clean up use of SearchMan in fallback detection
Diffstat (limited to 'engines/cge2')
-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;