[Scummvm-git-logs] scummvm master -> f122bb69f9e6f9489621982d6e451d459ba79c08
sev-
sev at scummvm.org
Sun Dec 1 23:13:11 UTC 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f122bb69f9 DIRECTOR: Load all STXT resources which look like scripts
Commit: f122bb69f9e6f9489621982d6e451d459ba79c08
https://github.com/scummvm/scummvm/commit/f122bb69f9e6f9489621982d6e451d459ba79c08
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-12-02T00:12:59+01:00
Commit Message:
DIRECTOR: Load all STXT resources which look like scripts
Changed paths:
engines/director/score.cpp
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 36e32c2..0d11c7b 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -207,18 +207,16 @@ void Score::loadArchive() {
// Now process STXTs
Common::Array<uint16> stxt = _movieArchive->getResourceIDList(MKTAG('S','T','X','T'));
-
- // Try to load movie script, it sits in resource A11
- if (_vm->getVersion() <= 3) {
- if (stxt.size() > 0) {
- loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *stxt.begin()));
- }
- }
-
debugC(2, kDebugLoading, "****** Loading %d STXT resources", stxt.size());
for (Common::Array<uint16>::iterator iterator = stxt.begin(); iterator != stxt.end(); ++iterator) {
_loadedStxts->setVal(*iterator,
new Stxt(*_movieArchive->getResource(MKTAG('S','T','X','T'), *iterator)));
+
+ // Try to load movie script, it starts with a comment
+ if (_vm->getVersion() <= 3) {
+ loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *iterator));
+ }
+
}
copyCastStxts();
}
@@ -231,11 +229,8 @@ void Score::copyCastStxts() {
tc->_key + 1024 :
tc->_value->_children[0].index;
if (_loadedStxts->getVal(stxtid)) {
- debugC(3, kDebugLoading,"Yes to STXT: %d", stxtid);
const Stxt *stxt = _loadedStxts->getVal(stxtid);
tc->_value->importStxt(stxt);
- } else {
- debugC(3, "No to STXT: %d", stxtid);
}
}
More information about the Scummvm-git-logs
mailing list