diff options
| author | Le Philousophe | 2019-09-28 15:33:17 +0200 |
|---|---|---|
| committer | Le Philousophe | 2019-09-28 15:38:35 +0200 |
| commit | 739ad793f63cbb99d7a1193fdccdc6e30df9969c (patch) | |
| tree | 34cc471416c2f5e74e1ff88acf2b76a44083cf3c /engines/cryomni3d/detection.cpp | |
| parent | ea1f8a93ffbe44e8c67e7d22545da2155552dd23 (diff) | |
| download | scummvm-rg350-739ad793f63cbb99d7a1193fdccdc6e30df9969c.tar.gz scummvm-rg350-739ad793f63cbb99d7a1193fdccdc6e30df9969c.tar.bz2 scummvm-rg350-739ad793f63cbb99d7a1193fdccdc6e30df9969c.zip | |
CRYOMNI3D: Fix fonts used by various versions
Italian versions of the game use a different set of fonts than others.
Until now, 4 sets have been found.
Diffstat (limited to 'engines/cryomni3d/detection.cpp')
| -rw-r--r-- | engines/cryomni3d/detection.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/cryomni3d/detection.cpp b/engines/cryomni3d/detection.cpp index 44e5652222..6095185716 100644 --- a/engines/cryomni3d/detection.cpp +++ b/engines/cryomni3d/detection.cpp @@ -213,6 +213,8 @@ ADDetectedGame CryOmni3DMetaEngine::fallbackDetectVersailles(const Common::FSNod } // Determine language + // Use fonts set C as helvet12 contains more characters than fruitL + uint8 fontsSet = GF_VERSAILLES_FONTS_SET_B; node = root.getChild("GTO").getChild("DIALOG1.GTO"); if (node.getChild("DIALOG1.GTO").exists()) { s_fallbackDesc.desc.language = Common::FR_FRA; @@ -224,6 +226,7 @@ ADDetectedGame CryOmni3DMetaEngine::fallbackDetectVersailles(const Common::FSNod s_fallbackDesc.desc.language = Common::ES_ESP; } else if (node.getChild("DIALOG1.ITA").exists()) { s_fallbackDesc.desc.language = Common::IT_ITA; + fontsSet = GF_VERSAILLES_FONTS_SET_C; } // Determine game flags @@ -233,7 +236,9 @@ ADDetectedGame CryOmni3DMetaEngine::fallbackDetectVersailles(const Common::FSNod // Add file to report to let developers set appropriate game flags addUnknownFile(node, game); - s_fallbackDesc.features |= GF_VERSAILLES_NUMERICFONTS; + s_fallbackDesc.features |= GF_VERSAILLES_FONTS_NUMERIC; + } else { + s_fallbackDesc.features |= fontsSet; } node = root.getChild("DIAL").getChild("VOIX").getChild("ALI001__.WAV"); @@ -241,7 +246,9 @@ ADDetectedGame CryOmni3DMetaEngine::fallbackDetectVersailles(const Common::FSNod // Add file to report to let developers set appropriate game flags addUnknownFile(node, game); - s_fallbackDesc.features |= GF_VERSAILLES_AUDIOPADDING; + s_fallbackDesc.features |= GF_VERSAILLES_AUDIOPADDING_YES; + } else { + s_fallbackDesc.features |= GF_VERSAILLES_AUDIOPADDING_NO; } return game; |
