diff options
Diffstat (limited to 'engines/bladerunner/text_resource.cpp')
-rw-r--r-- | engines/bladerunner/text_resource.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/bladerunner/text_resource.cpp b/engines/bladerunner/text_resource.cpp index b7ae136455..1c77baf6f4 100644 --- a/engines/bladerunner/text_resource.cpp +++ b/engines/bladerunner/text_resource.cpp @@ -43,7 +43,6 @@ TextResource::~TextResource() { delete[] _strings; } -#if SUBTITLES_SUPPORT // for TRE subtitles support bool TextResource::openFromStream(Common::ScopedPtr<Common::SeekableReadStream> &s) { @@ -85,7 +84,6 @@ bool TextResource::openFromStream(Common::ScopedPtr<Common::SeekableReadStream> return true; } -#endif bool TextResource::open(const Common::String &name) { assert(name.size() <= 8); @@ -142,19 +140,17 @@ const char *TextResource::getText(uint32 id) const { return ""; } -#if SUBTITLES_SUPPORT const char *TextResource::getOuttakeTextByFrame(uint32 frame) const { for (uint32 i = 0; i != _count; ++i) { - //debug("Checking %d - so within: %d , %d", _ids[i], (0x0000FFFF & _ids[i]), ((_ids[i] >> 16) & 0x0000FFFF ) ); + //debug("Checking %d - so within: %d , %d", _ids[i], (0x0000FFFF & _ids[i]), ((_ids[i] >> 16) & 0x0000FFFF ) ); if ((frame >= (0x0000FFFF & _ids[i]) ) && (frame < ((_ids[i] >> 16) & 0x0000FFFF ) )){ - // we found an id with lower 16bits smaller or equal to our frame key - // and with higher 16 bits higher than the frame key + // we found an id with lower 16bits smaller or equal to our frame key + // and with higher 16 bits higher than the frame key return _strings + _offsets[i]; } } return ""; } -#endif int TextResource::getCount() const { return _count; |