aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/text_resource.h
diff options
context:
space:
mode:
authorThanasis Antoniou2018-06-18 14:10:00 +0300
committerEugene Sandulenko2018-12-25 12:35:52 +0100
commita86625700fe69ff27e0f704a41307cdd2135a6a8 (patch)
tree3e25f052da3d0cc4bf18d21960cedade06a19911 /engines/bladerunner/text_resource.h
parent9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a (diff)
downloadscummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.tar.gz
scummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.tar.bz2
scummvm-rg350-a86625700fe69ff27e0f704a41307cdd2135a6a8.zip
BLADERUNNER: Added subtitles support and checkbox in KIA
Diffstat (limited to 'engines/bladerunner/text_resource.h')
-rw-r--r--engines/bladerunner/text_resource.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/bladerunner/text_resource.h b/engines/bladerunner/text_resource.h
index b513629d9d..be399bf2d8 100644
--- a/engines/bladerunner/text_resource.h
+++ b/engines/bladerunner/text_resource.h
@@ -23,6 +23,10 @@
#ifndef BLADERUNNER_TEXT_RESOURCE_H
#define BLADERUNNER_TEXT_RESOURCE_H
+#include "bladerunner/bladerunner.h" // needed for definition of Common::ScopedPtr (subtitles font external font file support) -- and for the subtitles relevant macro defines
+#if SUBTITLES_SUPPORT
+#include "common/util.h"
+#endif
#include "common/str.h"
namespace BladeRunner {
@@ -43,7 +47,14 @@ public:
~TextResource();
bool open(const Common::String &name);
+ #if SUBTITLES_SUPPORT
+ bool openFromStream(Common::ScopedPtr<Common::SeekableReadStream> &s);
+ #endif
+
const char *getText(uint32 id) const;
+ #if SUBTITLES_SUPPORT
+ const char *getOuttakeTextByFrame(uint32 frame) const;
+ #endif
int getCount() const;
};