diff options
author | Filippos Karapetis | 2009-02-18 21:05:05 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-18 21:05:05 +0000 |
commit | 2af3529b1befeb06585b45d8228740606c6bdf40 (patch) | |
tree | 14b4d5a9d0ef2bd5bcb0244cd3b94f44620cdf7c /engines/sci | |
parent | 18ea8081c03ca26a0604b9e8b8090d5af3672743 (diff) | |
download | scummvm-rg350-2af3529b1befeb06585b45d8228740606c6bdf40.tar.gz scummvm-rg350-2af3529b1befeb06585b45d8228740606c6bdf40.tar.bz2 scummvm-rg350-2af3529b1befeb06585b45d8228740606c6bdf40.zip |
Added initial implementation of the fallback detector for unknown versions (version detection from the original executable will be readded and displayed in this part)
svn-id: r38505
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/detection.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 1aae7aae31..a5bd425cce 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -1320,21 +1320,6 @@ static const struct SciGameDescription SciGameDescriptions[] = { {AD_TABLE_END_MARKER, {}, SCI_VERSION(0, 000, 000)} }; -// Generic entries for filename based fallback -static const struct SciGameDescription SciGameGeneric[] = { - {{"sci", 0, AD_ENTRY1("resource.map", NULL), Common::UNK_LANG, Common::kPlatformUnknown, 0},{},SCI_VERSION(0, 000, 000)}, - {AD_TABLE_END_MARKER, {}, SCI_VERSION(0, 000, 000)} -}; - -// Filename based fallback information -static const struct ADFileBasedFallback SciGameFallback[] = { - {(const void*)&SciGameGeneric[0], {"resource.map", "resource.000", NULL} }, - {(const void*)&SciGameGeneric[0], {"resource.map", "resource.001", NULL} }, - {(const void*)&SciGameGeneric[0], {"resmap.000", "ressci.000", NULL} }, - {(const void*)&SciGameGeneric[0], {"resmap.001", "ressci.001", NULL} }, - {0, {NULL}} -}; - static const ADParams detectionParams = { // Pointer to ADGameDescription or its superset structure (const byte *)SciGameDescriptions, @@ -1349,7 +1334,7 @@ static const ADParams detectionParams = { // Name of single gameid (optional) "sci", // List of files for file-based fallback detection (optional) - SciGameFallback, + 0, // Flags 0 }; @@ -1367,9 +1352,19 @@ public: } virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const; + const ADGameDescription *fallbackDetect(const Common::FSList &fslist) const; }; +const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fslist) const { + 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: "); + + // TODO + return 0; +} + bool SciMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const { const SciGameDescription *desc = (const SciGameDescription *)gd; |