mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 12:12:16 +00:00
WINTERMUTE: Use BaseGame->expandStringByStringTable(&Common::String) in SubtitleCard
This commit is contained in:
parent
578edde66f
commit
f525514da5
@ -31,17 +31,14 @@
|
||||
|
||||
namespace Wintermute {
|
||||
|
||||
SubtitleCard::SubtitleCard(BaseGame *inGame,
|
||||
const Common::String &text,
|
||||
const uint &startFrame,
|
||||
const uint &endFrame) : _gameRef(inGame),
|
||||
_startFrame(startFrame),
|
||||
SubtitleCard::SubtitleCard(BaseGame *inGame,
|
||||
const Common::String &text,
|
||||
const uint &startFrame,
|
||||
const uint &endFrame) : _gameRef(inGame),
|
||||
_startFrame(startFrame),
|
||||
_endFrame(endFrame) {
|
||||
// TODO: Fix expandStringByStringTable instead of this ugly hack
|
||||
char *tmp = new char[text.size()];
|
||||
strcpy(tmp, text.c_str());
|
||||
_gameRef->expandStringByStringTable(&tmp);
|
||||
_text = Common::String(tmp);
|
||||
_text = text;
|
||||
_gameRef->expandStringByStringTable(_text);
|
||||
}
|
||||
|
||||
uint32 SubtitleCard::getStartFrame() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user