aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-09-18 23:54:11 +0200
committerWillem Jan Palenstijn2017-09-20 20:53:14 +0200
commitca82bf61e3d6d48ff037d151e9a7c245fd783e79 (patch)
tree530f8fbd9e9036ab12f41e46d8abf0a8832fdeb6
parent6bea267385d130e1957f67f28f14225301d15eba (diff)
downloadscummvm-rg350-ca82bf61e3d6d48ff037d151e9a7c245fd783e79.tar.gz
scummvm-rg350-ca82bf61e3d6d48ff037d151e9a7c245fd783e79.tar.bz2
scummvm-rg350-ca82bf61e3d6d48ff037d151e9a7c245fd783e79.zip
CGE: Clean up SearchMan after fallbackDetect
-rw-r--r--engines/cge/detection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cge/detection.cpp b/engines/cge/detection.cpp
index 0df1e8711e..482591bf50 100644
--- a/engines/cge/detection.cpp
+++ b/engines/cge/detection.cpp
@@ -159,13 +159,14 @@ const ADGameDescription *CGEMetaEngine::fallbackDetect(const FileMap &allFiles,
if (!game)
return nullptr;
- SearchMan.clear();
- SearchMan.addDirectory(fslist.begin()->getParent().getPath(), fslist.begin()->getParent());
+ SearchMan.addDirectory("CGEMetaEngine::fallbackDetect", fslist.begin()->getParent());
ResourceManager *resman;
resman = new ResourceManager();
bool result = resman->exist("CGE.SAY");
delete resman;
+ SearchMan.remove("CGEMetaEngine::fallbackDetect");
+
if (!result)
return nullptr;