[Scummvm-git-logs] scummvm master -> 748c4d2626e8639a2b2b85203e487d63bf566bf4

dreammaster noreply at scummvm.org
Mon Oct 28 05:31:30 UTC 2024


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:
748c4d2626 M4: RIDDLE: Fix for properly dumping pcode opcodes


Commit: 748c4d2626e8639a2b2b85203e487d63bf566bf4
    https://github.com/scummvm/scummvm/commit/748c4d2626e8639a2b2b85203e487d63bf566bf4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-10-27T22:31:18-07:00

Commit Message:
M4: RIDDLE: Fix for properly dumping pcode opcodes

Changed paths:
    engines/m4/dbg/dbg_wscript.cpp


diff --git a/engines/m4/dbg/dbg_wscript.cpp b/engines/m4/dbg/dbg_wscript.cpp
index 8851ed8f027..9bbfd320edc 100644
--- a/engines/m4/dbg/dbg_wscript.cpp
+++ b/engines/m4/dbg/dbg_wscript.cpp
@@ -118,7 +118,7 @@ void dbg_SetCurrMachInstr(machine *m, int32 pcOffset, bool isPcode) {
 		Common::sprintf_s(g_instructionText, "%s (%.4x): ",
 			m ? m->machName : "NONE", pcOffset);
 		g_hasParams = false;
-		g_hasParams = isPcode;
+		g_isPcode = isPcode;
 	}
 }
 
@@ -145,7 +145,8 @@ void dbg_AddParamToCurrMachInstr(const char *param) {
 }
 
 void dbg_EndCurrMachInstr() {
-	debugC(1, kDebugScripts, "%s", g_instructionText);
+	if (!strncmp(g_instructionText, "mc ", 3) && _G(game).room_id == 201)
+		debugC(1, kDebugScripts, "%s", g_instructionText);
 }
 
 void dbg_SetCurrSequInstr(Anim8 *myAnim8, int32 compareCCR) {




More information about the Scummvm-git-logs mailing list