diff options
author | Willem Jan Palenstijn | 2017-09-20 20:55:40 +0200 |
---|---|---|
committer | GitHub | 2017-09-20 20:55:40 +0200 |
commit | 7a58db8b92d58d81a3752140c7983de7595db13d (patch) | |
tree | 7580d3f0c7bbc7f5a3e476161644997a19876384 /engines/cge2 | |
parent | 1515bb31a6fa802314836a9904756d7fcc840c69 (diff) | |
parent | 31089578129fc810188277eb546715e5409fb124 (diff) | |
download | scummvm-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.cpp | 5 |
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; |