diff options
author | Le Philousophe | 2019-06-23 08:58:24 +0200 |
---|---|---|
committer | Le Philousophe | 2019-07-05 07:40:29 +0200 |
commit | c24304a78b8f04b36be28877e29135341a2953e4 (patch) | |
tree | edaf67e53b58e4fd70ecefec3ab5ee2ec746bd15 /engines/cryomni3d/versailles/engine.cpp | |
parent | 2ac6d005bbbf03c2c4ab9591e6904df572af7993 (diff) | |
download | scummvm-rg350-c24304a78b8f04b36be28877e29135341a2953e4.tar.gz scummvm-rg350-c24304a78b8f04b36be28877e29135341a2953e4.tar.bz2 scummvm-rg350-c24304a78b8f04b36be28877e29135341a2953e4.zip |
CRYOMNI3D: Remove detection leftover and add flags
That will let us adapt from different packaging across Versailles
editions.
Diffstat (limited to 'engines/cryomni3d/versailles/engine.cpp')
-rw-r--r-- | engines/cryomni3d/versailles/engine.cpp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp index e27991507d..98a34e31d5 100644 --- a/engines/cryomni3d/versailles/engine.cpp +++ b/engines/cryomni3d/versailles/engine.cpp @@ -53,7 +53,8 @@ CryOmni3DEngine_Versailles::CryOmni3DEngine_Versailles(OSystem *syst, _mainPalette(nullptr), _cursorPalette(nullptr), _transparentPaletteMap(nullptr), _currentPlace(nullptr), _currentWarpImage(nullptr), _fixedImage(nullptr), _transitionAnimateWarp(true), _forceRedrawWarp(false), _forcePaletteUpdate(false), - _fadedPalette(false), _loadedSave(uint(-1)), _dialogsMan(this), + _fadedPalette(false), _loadedSave(uint(-1)), _dialogsMan(this, + getFeatures() & GF_VERSAILLES_AUDIOPADDING), _musicVolumeFactor(1.), _musicCurrentFile(nullptr), _countingDown(false), _countdownNextEvent(0) { } @@ -302,7 +303,21 @@ void CryOmni3DEngine_Versailles::setupFonts() { Common::Array<Common::String> fonts; // Explainations below are based on original binaries, debug is not used in this engine - if (getPlatform() == Common::kPlatformMacintosh) { + // Fonts loaded are not always the same: FR Mac and EN DOS don't use the same font for debug doc/unused + // The important is that the loaded one is present in all versions + if (getFeatures() & GF_VERSAILLES_NUMERICFONTS) { + fonts.push_back("font01.CRF"); // 0: Doc titles + fonts.push_back("font02.CRF"); // 1: Menu and T0 in credits + fonts.push_back("font03.CRF"); // 2: T1 and T3 in credits + fonts.push_back("font04.CRF"); // 3: Menu title, options messages boxes buttons + fonts.push_back("font05.CRF"); // 4: T2 in credits, text in docs + fonts.push_back("font06.CRF"); // 5: objects description in toolbar, options messages boxes text, T4 in credits + fonts.push_back("font07.CRF"); // 6: T5 in credits, doc subtitle + fonts.push_back("font08.CRF"); // 7: dialogs texts + fonts.push_back("font09.CRF"); // 8: unused + fonts.push_back("font10.CRF"); // 9: Warp messages texts + fonts.push_back("font11.CRF"); // 10: debug + } else { fonts.push_back("garamB18.CRF"); // 0: Doc titles fonts.push_back("garamB22.CRF"); // 1: Menu and T0 in credits //fonts.push_back("geneva15.CRF"); @@ -332,18 +347,6 @@ void CryOmni3DEngine_Versailles::setupFonts() { // This file isn't even loaded by MacOS executable //fonts.push_back("garamB20.CRF"); - } else { - fonts.push_back("font01.CRF"); // 0: Doc titles - fonts.push_back("font02.CRF"); // 1: Menu and T0 in credits - fonts.push_back("font03.CRF"); // 2: T1 and T3 in credits - fonts.push_back("font04.CRF"); // 3: Menu title, options messages boxes buttons - fonts.push_back("font05.CRF"); // 4: T2 in credits, text in docs - fonts.push_back("font06.CRF"); // 5: objects description in toolbar, options messages boxes text, T4 in credits - fonts.push_back("font07.CRF"); // 6: T5 in credits, doc subtitle - fonts.push_back("font08.CRF"); // 7: dialogs texts - fonts.push_back("font09.CRF"); // 8: unused - fonts.push_back("font10.CRF"); // 9: Warp messages texts - fonts.push_back("font11.CRF"); // 10: debug } _fontManager.loadFonts(fonts); |