aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-05 19:55:03 +0000
committerFilippos Karapetis2010-06-05 19:55:03 +0000
commitabcd8e093a52745a5925993c74abfe901234df3a (patch)
tree1424dd4291bd773a7f34e56e478723a5fbbb74bc
parent7b56f39985a62852478ccb8ad01a85e9f028097c (diff)
downloadscummvm-rg350-abcd8e093a52745a5925993c74abfe901234df3a.tar.gz
scummvm-rg350-abcd8e093a52745a5925993c74abfe901234df3a.tar.bz2
scummvm-rg350-abcd8e093a52745a5925993c74abfe901234df3a.zip
Replaced a leftover Common::File::exists() call in the fallback detector
svn-id: r49443
-rw-r--r--engines/sci/detection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp
index adec23c95e..1ccfc6bf02 100644
--- a/engines/sci/detection.cpp
+++ b/engines/sci/detection.cpp
@@ -490,7 +490,6 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl
}
}
- delete resMan;
// Fill in extras field
if (!strcmp(s_fallbackDesc.gameid, "lsl1sci") ||
@@ -498,13 +497,15 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl
!strcmp(s_fallbackDesc.gameid, "sq1sci"))
s_fallbackDesc.extra = "VGA Remake";
- if (!strcmp(s_fallbackDesc.gameid, "qfg1") && !Common::File::exists("resource.001"))
+ if (!strcmp(s_fallbackDesc.gameid, "qfg1") && getSciVersion() == SCI_VERSION_1_1)
s_fallbackDesc.extra = "VGA Remake";
// Add "demo" to the description for demos
if (s_fallbackDesc.flags & ADGF_DEMO)
s_fallbackDesc.extra = "demo";
+ delete resMan;
+
return (const ADGameDescription *)&s_fallbackDesc;
}