diff options
author | Tobia Tesan | 2017-04-25 17:59:19 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-05-02 21:01:23 +0100 |
commit | 2bb427d6e12c5ef9c6e52987f0edfb70b2288e02 (patch) | |
tree | 6322150be9430f36b90a388bd0686f6a1e403bad /engines | |
parent | 61e4181f5fdb45f456f5d059e435461d0e99180f (diff) | |
download | scummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.tar.gz scummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.tar.bz2 scummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.zip |
DIRECTOR: Preload Stxts in Score
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 217fc1270f..be36011ead 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -190,6 +190,13 @@ void Score::loadArchive() { for (Common::Array<uint16>::iterator iterator = stxt.begin(); iterator != stxt.end(); ++iterator) { loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *iterator)); + // Load STXTS + + // TODO: make sure the Stxt is eventually destroyed + _loadedStxts->setVal(*iterator, + new Stxt(*_movieArchive->getResource(MKTAG('S','T','X','T'), + *iterator)) + ); } } } |