[Scummvm-git-logs] scummvm master -> 76523083ff210a1924440473732e7f190a16b0fa

sev- noreply at scummvm.org
Sun Nov 5 18:32:34 UTC 2023


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:
76523083ff SLUDGE: More execution debug output


Commit: 76523083ff210a1924440473732e7f190a16b0fa
    https://github.com/scummvm/scummvm/commit/76523083ff210a1924440473732e7f190a16b0fa
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-11-05T19:32:09+01:00

Commit Message:
SLUDGE: More execution debug output

Changed paths:
    engines/sludge/function.cpp
    engines/sludge/variable.cpp


diff --git a/engines/sludge/function.cpp b/engines/sludge/function.cpp
index b2b652e6510..a5278bd5563 100644
--- a/engines/sludge/function.cpp
+++ b/engines/sludge/function.cpp
@@ -222,6 +222,7 @@ bool continueFunction(LoadedFunction *fun) {
 		printStack(fun->stack);
 
 		debugN("  Reg before: ");
+		fun->reg.debugPrint();
 		debug("");
 
 		debugN(" Locals before: ");
@@ -657,6 +658,7 @@ bool continueFunction(LoadedFunction *fun) {
 		printStack(fun->stack);
 
 		debugN("  Reg after: ");
+		fun->reg.debugPrint();
 		debug("");
 
 		debugN(" Locals after: ");
diff --git a/engines/sludge/variable.cpp b/engines/sludge/variable.cpp
index 70ef93228ac..a083e9c140a 100644
--- a/engines/sludge/variable.cpp
+++ b/engines/sludge/variable.cpp
@@ -146,7 +146,7 @@ void Variable::debugPrint() {
 		debugN("SVT_STRING(\"%s\") ", Common::toPrintable(varData.theString).c_str());
 		break;
 	case SVT_BUILT:
-		debugN("SVT_BUILT(\"%s\") ", varData.theString);
+		debugN("SVT_BUILT(%d) ", varData.intValue);
 		break;
 	case SVT_STACK:
 		debugN("SVT_STACK(");




More information about the Scummvm-git-logs mailing list