From 0a507b39d01e23574bc3093278bc48691dcbc838 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 15 Jan 2017 16:59:21 +0100 Subject: DIRECTOR: More debug info on Shared Cast loading --- engines/director/director.cpp | 2 ++ engines/director/resource.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/director') 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 *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::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::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)); } } -- cgit v1.2.3