aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobia Tesan2017-04-25 17:59:19 +0200
committerEugene Sandulenko2017-05-02 21:01:23 +0100
commit2bb427d6e12c5ef9c6e52987f0edfb70b2288e02 (patch)
tree6322150be9430f36b90a388bd0686f6a1e403bad
parent61e4181f5fdb45f456f5d059e435461d0e99180f (diff)
downloadscummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.tar.gz
scummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.tar.bz2
scummvm-rg350-2bb427d6e12c5ef9c6e52987f0edfb70b2288e02.zip
DIRECTOR: Preload Stxts in Score
-rw-r--r--engines/director/score.cpp7
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))
+ );
}
}
}