[Scummvm-git-logs] scummvm master -> 04bd8b1d4eab84bf1e1762e89ce3d5a2bf3bdf2e

lotharsm noreply at scummvm.org
Mon Oct 13 12:56:25 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:
04bd8b1d4e DEVTOOLS: DIRECTOR: Fix syntax error in director-generate-xobj-stub.py


Commit: 04bd8b1d4eab84bf1e1762e89ce3d5a2bf3bdf2e
    https://github.com/scummvm/scummvm/commit/04bd8b1d4eab84bf1e1762e89ce3d5a2bf3bdf2e
Author: Lothar Serra Mari (mail at serra.me)
Date: 2025-10-13T14:02:10+02:00

Commit Message:
DEVTOOLS: DIRECTOR: Fix syntax error in director-generate-xobj-stub.py

In the templates for the generated C++ code, all "{" and "}" need to be
replaced with "{{" and "}}" to ensure proper escaping.

Changed paths:
    devtools/director-generate-xobj-stub.py


diff --git a/devtools/director-generate-xobj-stub.py b/devtools/director-generate-xobj-stub.py
index 6331377c1dd..930e60c6709 100755
--- a/devtools/director-generate-xobj-stub.py
+++ b/devtools/director-generate-xobj-stub.py
@@ -137,10 +137,10 @@ static BuiltinProto xlibBuiltins[] = {{
 void {xobj_class}::open(ObjectType type, const Common::Path &path) {{
     {xobject_class}::initMethods(xlibMethods);
     {xobject_class} *xobj = new {xobject_class}(type);
-    if (type == kXtraObj) {
+    if (type == kXtraObj) {{
         g_lingo->_openXtras.push_back(xlibName);
 		g_lingo->_openXtraObjects.push_back(xobj);
-	}
+	}}
     g_lingo->exposeXObject(xlibName, xobj);
     g_lingo->initBuiltIns(xlibBuiltins);
 }}




More information about the Scummvm-git-logs mailing list