From f101906bc2d654c80ccadbf560261727759eea0c Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Mon, 2 Jul 2018 10:45:17 +0300 Subject: BLADERUNNER: Removed compile time macros, added synch with GUI --- engines/bladerunner/bladerunner.h | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'engines/bladerunner/bladerunner.h') diff --git a/engines/bladerunner/bladerunner.h b/engines/bladerunner/bladerunner.h index 5c3cc88b9d..2888a6c109 100644 --- a/engines/bladerunner/bladerunner.h +++ b/engines/bladerunner/bladerunner.h @@ -39,13 +39,7 @@ #define BLADERUNNER_DEBUG_CONSOLE 0 #define BLADERUNNER_DEBUG_GAME 0 -#define SUBTITLES_SUPPORT 1 -#if SUBTITLES_SUPPORT -#define SUBTITLES_EXTERNAL_FONT 1 -#define SUBTITLES_ENABLED_BY_DEFAULT 1 -#endif // SUBTITLES_SUPPORT -#define BLADERUNNER_RESTORED_CONTENT_GAME 1 // needed for checkbox setting for subtitles enable/disable -#define RESTORED_CONTENT_EXTRA_FLAGS 1 // needed for checkbox setting for subtitles enable/disable +#define BLADERUNNER_SUBTITLES_EXTERNAL_FONT 1 namespace Common { struct Event; @@ -96,9 +90,7 @@ class Shape; class SliceAnimations; class SliceRenderer; class Spinner; -#if SUBTITLES_SUPPORT class Subtitles; -#endif class SuspectsDatabase; class TextResource; class Time; @@ -139,19 +131,13 @@ public: EndCredits *_endCredits; ESPER *_esper; GameFlags *_gameFlags; - #if BLADERUNNER_RESTORED_CONTENT_GAME - // EDS flags - GameFlags *_extraGameFlagsForRestoredContent; - #endif // BLADERUNNER_RESTORED_CONTENT_GAME GameInfo *_gameInfo; ItemPickup *_itemPickup; Items *_items; KIA *_kia; Lights *_lights; Font *_mainFont; - #if SUBTITLES_SUPPORT Subtitles *_subtitles; - #endif // SUBTITLES_SUPPORT Mouse *_mouse; Music *_music; Obstacles *_obstacles; @@ -209,6 +195,7 @@ public: bool _sceneIsLoading; bool _vqaIsPlaying; bool _vqaStopIsRequested; + bool _subtitlesEnabled; // tracks the state of whether subtitles are enabled or disabled from ScummVM GUI option or KIA checkbox (the states are synched) int _walkSoundId; int _walkSoundVolume; @@ -286,6 +273,11 @@ public: bool closeArchive(const Common::String &name); bool isArchiveOpen(const Common::String &name) const; + void syncSoundSettings(); + bool isSubtitlesEnabled(); + void setSubtitlesEnabled(bool newVal); + + Common::SeekableReadStream *getResourceStream(const Common::String &name); bool playerHasControl(); -- cgit v1.2.3