diff options
author | Willem Jan Palenstijn | 2017-09-18 23:54:16 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-09-20 20:53:14 +0200 |
commit | 31089578129fc810188277eb546715e5409fb124 (patch) | |
tree | 7580d3f0c7bbc7f5a3e476161644997a19876384 /engines/cge2 | |
parent | ca82bf61e3d6d48ff037d151e9a7c245fd783e79 (diff) | |
download | scummvm-rg350-31089578129fc810188277eb546715e5409fb124.tar.gz scummvm-rg350-31089578129fc810188277eb546715e5409fb124.tar.bz2 scummvm-rg350-31089578129fc810188277eb546715e5409fb124.zip |
CGE2: Clean up SearchMan after fallbackDetect
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; |