ADDetectedGame CGEMetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { ADDetectedGame game = detectGameFilebased(allFiles, fslist, CGE::fileBasedFallback); if (!game.desc) return ADDetectedGame(); SearchMan.addDirectory("CGEMetaEngine::fallbackDetect", fslist.begin()->getParent()); ResourceManager *resman; resman = new ResourceManager(); bool sayFileFound = resman->exist("CGE.SAY"); delete resman; SearchMan.remove("CGEMetaEngine::fallbackDetect"); if (!sayFileFound) return ADDetectedGame(); return game; }
const ADGameDescription *CGEMetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { ADFilePropertiesMap filesProps; const ADGameDescription *game; game = detectGameFilebased(allFiles, fslist, CGE::fileBasedFallback, &filesProps); if (!game) return nullptr; SearchMan.clear(); SearchMan.addDirectory(fslist.begin()->getParent().getPath(), fslist.begin()->getParent()); ResourceManager *resman; resman = new ResourceManager(); bool result = resman->exist("CGE.SAY"); delete resman; if (!result) return nullptr; reportUnknown(fslist.begin()->getParent(), filesProps); return &s_fallbackDesc; }