diff options
author | Kari Salminen | 2008-02-12 15:20:47 +0000 |
---|---|---|
committer | Kari Salminen | 2008-02-12 15:20:47 +0000 |
commit | 98f8e93102d4d69283da31ca955e14c314ee72d1 (patch) | |
tree | e1e20a059feabb5905fbc46d43fdfceacc138a9b /engines/agi/detection.cpp | |
parent | a93b6b22bb418a2e8fde4cff334d6897c3f34a9c (diff) | |
download | scummvm-rg350-98f8e93102d4d69283da31ca955e14c314ee72d1.tar.gz scummvm-rg350-98f8e93102d4d69283da31ca955e14c314ee72d1.tar.bz2 scummvm-rg350-98f8e93102d4d69283da31ca955e14c314ee72d1.zip |
Added better AGIPAL autodetect to the AGI's fallback detector (Now checks files 'pal.100' - 'pal.109' rather than just the file 'pal.101').
svn-id: r30852
Diffstat (limited to 'engines/agi/detection.cpp')
-rw-r--r-- | engines/agi/detection.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 55ccef7ea3..a56c547c28 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -2126,7 +2126,18 @@ Common::EncapsulatedADGameDesc fallbackDetector(const FSList *fslist) { // so we don't have to change it here. matchedUsingFilenames = true; - if (allFiles.contains("pal.101")) { // Check if it is AGIPAL + // Check for AGIPAL by checking for existence of any of the files "pal.100" - "pal.109" + bool agipal = false; + char agipalFile[] = "pal.xxx"; + for (uint i = 100; i <= 109; i++) { + sprintf(agipalFile, "pal.%d", i); + if (allFiles.contains(agipalFile)) { + agipal = true; // We found a file "pal.x" where 100 <= x <= 109 so it's AGIPAL + break; + } + } + + if (agipal) { // Check if it is AGIPAL description = "Unknown v2 AGIPAL Game"; g_fallbackDesc.features |= GF_AGIPAL; // Add AGIPAL feature flag } else { // Not AGIPAL so just plain v2 |