diff options
author | antoniou79 | 2018-08-01 18:05:28 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-12-25 12:35:52 +0100 |
commit | 6f55071c570ee6a5bc4d4f3205972f6d7e7c35d2 (patch) | |
tree | 279a73a8bafd0e46ed494ba2d4db505b8863e084 /engines/bladerunner/subtitles.h | |
parent | bf46900c7c48a988abfa7d622f1da2bff7c95544 (diff) | |
download | scummvm-rg350-6f55071c570ee6a5bc4d4f3205972f6d7e7c35d2.tar.gz scummvm-rg350-6f55071c570ee6a5bc4d4f3205972f6d7e7c35d2.tar.bz2 scummvm-rg350-6f55071c570ee6a5bc4d4f3205972f6d7e7c35d2.zip |
BLADERUNNER: SUBTITLES.MIX pack support
Diffstat (limited to 'engines/bladerunner/subtitles.h')
-rw-r--r-- | engines/bladerunner/subtitles.h | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/engines/bladerunner/subtitles.h b/engines/bladerunner/subtitles.h index 8392b7ab39..1f2465f3ee 100644 --- a/engines/bladerunner/subtitles.h +++ b/engines/bladerunner/subtitles.h @@ -48,7 +48,7 @@ class Subtitles { // TODO Or just support the current _vm->_languageCode ? [current implementation] static const int kMaxNumOfSubtitlesLines = 3; static const int kMaxWidthPerLineToAutoSplitThresholdPx = 610; - static const int kMaxTextResourceEntries = 1 + 26; // Support in-game subs (1) and all possible VQAs (26) with spoken dialogue! + static const int kMaxTextResourceEntries = 1 + 25; // Support in-game subs (1) and all possible VQAs (26) with spoken dialogue! static const Common::String SUBTITLES_FILENAME_PREFIXES[kMaxTextResourceEntries]; static const Common::String SUBTITLES_FONT_FILENAME; @@ -70,17 +70,16 @@ class Subtitles { int _currentSubtitleLines; bool _subtitlesQuoteChanged; - Common::File *_gameSubsFdEntries[kMaxTextResourceEntries]; // an array of pointers to TRE FILEs - bool _gameSubsFdEntriesFound[kMaxTextResourceEntries]; // false if a TRE file did not open successfully + bool _gameSubsResourceEntriesFound[kMaxTextResourceEntries]; // false if a TRE file did not open successfully bool _subsFontsLoaded; // false if external fonts did not load, or internal fonts (fore and background) did not load -#if BLADERUNNER_SUBTITLES_EXTERNAL_FONT - Common::File *_gameSubsFontsFd; // the file for the external FONT for subtitles -#endif // BLADERUNNER_SUBTITLES_EXTERNAL_FONT + bool _subtitlesSystemInactive; // true if the whole subtitles subsystem should be disabled (due to missing required resources) public: Subtitles(BladeRunnerEngine *vm); ~Subtitles(); + void init(); + void setSubtitlesSystemInactive(bool flag); // disable subtitles system (possibly due to missing important resources like SUBTITLES.MIX file) const char *getInGameSubsText(int actorId, int speech_id) ; // get the text for actorId, quoteId (in-game subs) const char *getOuttakeSubsText(const Common::String &outtakesName, int frame); // get the text for this frame if any @@ -92,24 +91,6 @@ public: void tickOuttakes(Graphics::Surface &s); private: - Common::SeekableReadStream *createReadStreamForGameSubs(int subTreIdx); - - bool openGameSubs(const Common::String &filename); - void closeGameSubs(int subTreIdx); - bool isOpenGameSubs(int subTreIdx) const; - - bool loadGameSubsText(int subTreIdx); // populate a GAME SUBS TextResource with subtitles - // - // -#if BLADERUNNER_SUBTITLES_EXTERNAL_FONT - Common::SeekableReadStream *createReadStreamForSubFonts(); - bool openSubsFontFile(); - void closeSubsFontFile(); - bool isOpenSubsFontFile() const; // - bool loadSubsFont(); // create a the font object from a FON file (external) -#endif // BLADERUNNER_SUBTITLES_EXTERNAL_FONT - - void draw(Graphics::Surface &s); // bool showAt(int x, int y); // TODO maybe future use (?) void calculatePosition(); |