aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/detection.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2009-08-15 12:09:47 +0000
committerWalter van Niftrik2009-08-15 12:09:47 +0000
commit5709e524f99a80258f410246254879670b59580f (patch)
treec49b3454ee309f1e6218bcfd292d7330e7d0b11c /engines/sci/detection.cpp
parent49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e (diff)
downloadscummvm-rg350-5709e524f99a80258f410246254879670b59580f.tar.gz
scummvm-rg350-5709e524f99a80258f410246254879670b59580f.tar.bz2
scummvm-rg350-5709e524f99a80258f410246254879670b59580f.zip
SCI: Rename sci_version_t to SciVersion
svn-id: r43407
Diffstat (limited to 'engines/sci/detection.cpp')
-rw-r--r--engines/sci/detection.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp
index eb01b7720e..7f9190444d 100644
--- a/engines/sci/detection.cpp
+++ b/engines/sci/detection.cpp
@@ -3326,9 +3326,6 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl
}
}
- if (exePlatform == Common::kPlatformUnknown)
- return 0;
-
// If these files aren't found, it can't be SCI
if (!foundResMap && !foundRes000)
return 0;
@@ -3339,23 +3336,14 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl
s_fallbackDesc.desc.language = Common::UNK_LANG;
s_fallbackDesc.desc.platform = exePlatform;
s_fallbackDesc.desc.flags = ADGF_NO_FLAGS;
- s_fallbackDesc.version = SCI_VERSION_0;
+ getSciVersionFromString(exeVersionString, &s_fallbackDesc.version, s_fallbackDesc.desc.platform);
printf("If this is *NOT* a fan-modified version (in particular, not a fan-made\n");
printf("translation), please, report the data above, including the following\n");
printf("version number, from the game's executable:\n");
+ printf("Version: %s\n\n", exeVersionString.empty() ? "not found" : exeVersionString.c_str());
- // Try to parse the executable version
- if (getSciVersionFromString(exeVersionString, &s_fallbackDesc.version, s_fallbackDesc.desc.platform)) {
- printf("Detected version: %s, parsed SCI version: %s\n",
- exeVersionString.c_str(), versionNames[s_fallbackDesc.version]);
-
- return (const ADGameDescription *)&s_fallbackDesc;
- } else {
- printf("Couldn't parse the interpreter version: %s (by executable scan)\n",
- exeVersionString.c_str());
- return NULL;
- }
+ return (const ADGameDescription *)&s_fallbackDesc;
}
bool SciMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {