diff options
author | Colin Snover | 2017-02-24 12:15:57 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-22 13:01:37 -0500 |
commit | e504efe4da62b3d2e32ffb895b935080be02aed4 (patch) | |
tree | eb8b452309c90ad667039599d743a80bd50cd2fd /engines/sci/engine/features.h | |
parent | 399551af09420e0b97ce4ee82d0bf368964e1333 (diff) | |
download | scummvm-rg350-e504efe4da62b3d2e32ffb895b935080be02aed4.tar.gz scummvm-rg350-e504efe4da62b3d2e32ffb895b935080be02aed4.tar.bz2 scummvm-rg350-e504efe4da62b3d2e32ffb895b935080be02aed4.zip |
SCI32: Add palette code for late SCI2.1mid+ games
Sometime during SCI2.1mid, the palette manager was changed to
save and restore the source palette, and to add in-game gamma
correction. Previously, only the vary start and target palettes
were saved, and gamma correction was only configurable in SSCI by
editing RESOURCE.CFG.
Diffstat (limited to 'engines/sci/engine/features.h')
-rw-r--r-- | engines/sci/engine/features.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/sci/engine/features.h b/engines/sci/engine/features.h index 044111a43e..6d9460d61e 100644 --- a/engines/sci/engine/features.h +++ b/engines/sci/engine/features.h @@ -124,10 +124,20 @@ public: gid != GID_MOTHERGOOSEHIRES; } - inline bool hasNewPaletteCode() const { + inline bool hasMidPaletteCode() const { return getSciVersion() >= SCI_VERSION_2_1_MIDDLE || g_sci->getGameId() == GID_KQ7; } + inline bool hasLatePaletteCode() const { + return getSciVersion() > SCI_VERSION_2_1_MIDDLE || + g_sci->getGameId() == GID_GK2 || + g_sci->getGameId() == GID_PQSWAT || + // Guessing that Shivers has the late palette code because it has a + // brightness slider + g_sci->getGameId() == GID_SHIVERS || + g_sci->getGameId() == GID_TORIN; + } + inline bool VMDOpenStopsAudio() const { // Of the games that use VMDs: // Yes: Phant1, Shivers, Torin |