[Scummvm-git-logs] scummvm master -> bab5098059ed61776fb3d8e21785566f6e042120
sev-
noreply at scummvm.org
Fri Sep 12 21:24:05 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
bab5098059 DIRECTOR: DT: Parse initializer string for behaviors and show it in Channels
Commit: bab5098059ed61776fb3d8e21785566f6e042120
https://github.com/scummvm/scummvm/commit/bab5098059ed61776fb3d8e21785566f6e042120
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-12T23:13:06+02:00
Commit Message:
DIRECTOR: DT: Parse initializer string for behaviors and show it in Channels
Changed paths:
engines/director/debugger/dt-score.cpp
engines/director/score.h
diff --git a/engines/director/debugger/dt-score.cpp b/engines/director/debugger/dt-score.cpp
index 03f34ce114d..fa78b61a109 100644
--- a/engines/director/debugger/dt-score.cpp
+++ b/engines/director/debugger/dt-score.cpp
@@ -886,7 +886,19 @@ void showChannels() {
behavior.read(*stream);
displayScriptRef(behavior.memberID);
ImGui::SameLine();
- ImGui::Text(",%d", behavior.initOffset);
+
+ if (behavior.initializerIndex) {
+ Common::MemoryReadStreamEndian *stream1 = score->getSpriteDetailsStream(behavior.initializerIndex);
+
+ if (stream1) {
+ Common::String init = stream1->readString();
+ ImGui::Text("(%s)", init.c_str());
+
+ delete stream1;
+ } else {
+ ImGui::Text("(\"\")");
+ }
+ }
}
delete stream;
} else {
diff --git a/engines/director/score.h b/engines/director/score.h
index cf5e8a27045..342cbda65f1 100644
--- a/engines/director/score.h
+++ b/engines/director/score.h
@@ -63,12 +63,12 @@ struct Label {
struct BehaviorElement {
CastMemberID memberID;
- int32 initOffset = 0;
+ int32 initializerIndex = 0;
void read(Common::ReadStreamEndian &stream) {
memberID.castLib = (int16)stream.readUint16();
memberID.member = (int16)stream.readUint16();
- initOffset = (int32)stream.readUint32();
+ initializerIndex = (int32)stream.readUint32();
}
};
More information about the Scummvm-git-logs
mailing list