aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-13 18:49:17 +0100
committerEugene Sandulenko2019-12-13 18:49:17 +0100
commit51bfa160e98322b15e4d35c29633920ef95c40dd (patch)
tree34544ad7f820ba754d64c201f9e75665cba5964d
parent513a7d878c55be83677ef76c363e64bdda64f694 (diff)
downloadscummvm-rg350-51bfa160e98322b15e4d35c29633920ef95c40dd.tar.gz
scummvm-rg350-51bfa160e98322b15e4d35c29633920ef95c40dd.tar.bz2
scummvm-rg350-51bfa160e98322b15e4d35c29633920ef95c40dd.zip
DIRECTOR: Improved loading debug output
-rw-r--r--engines/director/score.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 36e75eae06..e55a12a62d 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -815,6 +815,11 @@ void Score::setCastMemberModified(int castId) {
}
void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) {
+ if (debugChannelSet(5, kDebugLoading)) {
+ debug("Score::loadLabels()");
+ stream.hexdump(stream.size());
+ }
+
_labels = new Common::SortedArray<Label *>(compareLabels);
uint16 count = stream.readUint16() + 1;
uint32 offset = count * 4 + 2;
@@ -845,7 +850,7 @@ void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) {
debugC(2, kDebugLoading, "****** Loading labels");
for (j = _labels->begin(); j != _labels->end(); ++j) {
- debugC(2, kDebugLoading, "Frame %d, Label %s", (*j)->number, (*j)->name.c_str());
+ debugC(2, kDebugLoading, "Frame %d, Label '%s'", (*j)->number, Common::toPrintable((*j)->name).c_str());
}
}