aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2017-01-15 16:59:21 +0100
committerEugene Sandulenko2017-01-15 17:33:25 +0100
commit0a507b39d01e23574bc3093278bc48691dcbc838 (patch)
tree88c088ba9cb4be237f2caf7859c2b3d5df26c041 /engines
parentecf9c95296fb10bb5fa982f3bc4bfe110c597a9f (diff)
downloadscummvm-rg350-0a507b39d01e23574bc3093278bc48691dcbc838.tar.gz
scummvm-rg350-0a507b39d01e23574bc3093278bc48691dcbc838.tar.bz2
scummvm-rg350-0a507b39d01e23574bc3093278bc48691dcbc838.zip
DIRECTOR: More debug info on Shared Cast loading
Diffstat (limited to 'engines')
-rw-r--r--engines/director/director.cpp2
-rw-r--r--engines/director/resource.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index e57401c6f0..5e523de11d 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -166,6 +166,8 @@ Common::HashMap<Common::String, Score *> *DirectorEngine::scanMovies(const Commo
if (Common::matchString(i->getName().c_str(), sharedMMMname, true)) {
_sharedCastFile = i->getName();
+
+ debugC(2, kDebugLoading, "Shared cast detected: %s", i->getName().c_str());
continue;
}
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index 3d1f7a25bb..f43118d10b 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -192,7 +192,7 @@ void DirectorEngine::loadMac() {
void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
Archive *shardcst = createArchive();
- debugC(1, kDebugLoading, "Loading Shared cast '%s'", filename.c_str());
+ debug(0, "Loading Shared cast '%s'", filename.c_str());
if (!shardcst->openFile(filename)) {
warning("No shared cast %s", filename.c_str());
@@ -248,6 +248,7 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
if (bmp.size() != 0) {
debugC(3, kDebugLoading, "Loading %d BITDs", bmp.size());
for (Common::Array<uint16>::iterator iterator = bmp.begin(); iterator != bmp.end(); ++iterator) {
+ debugC(3, kDebugLoading, "Shared BITD %d", *iterator);
_sharedBMP->setVal(*iterator, shardcst->getResource(MKTAG('B','I','T','D'), *iterator));
}
}
@@ -256,6 +257,7 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
if (stxt.size() != 0) {
debugC(3, kDebugLoading, "Loading %d SNDs", sound.size());
for (Common::Array<uint16>::iterator iterator = sound.begin(); iterator != sound.end(); ++iterator) {
+ debugC(3, kDebugLoading, "Shared SND %d", *iterator);
_sharedSound->setVal(*iterator, shardcst->getResource(MKTAG('S','N','D',' '), *iterator));
}
}