From bf5de57bd3f1e0aa1471e0c7ceb5f7892dcc9c6b Mon Sep 17 00:00:00 2001 From: Shengjie Xu Date: Fri, 26 Jul 2024 22:10:12 -0400 Subject: [PATCH] Bugfix for renpy imagepack support: now paths in layeredimage use '/' --- src/preppipe/renpy/codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preppipe/renpy/codegen.py b/src/preppipe/renpy/codegen.py index 72aed3e..0584a65 100644 --- a/src/preppipe/renpy/codegen.py +++ b/src/preppipe/renpy/codegen.py @@ -1191,7 +1191,7 @@ def write_imagepack_instances(self, imagepacks : dict[str, ImagePackExportDataBu if not isinstance(layerinfo, ImagePackExportDataBuilder.LayerExportInfo): raise PPInternalError('Unexpected layer export info type') attrdecl = " attribute RL" + str(layerinfo.index) + ":" - attrbody = " \"" + layerinfo.path + "\"" + attrbody = " \"" + layerinfo.path.replace("\\", "/") + "\"" if layerinfo.offset_x != 0 or layerinfo.offset_y != 0: attrbody += " pos (" + str(layerinfo.offset_x) + ", " + str(layerinfo.offset_y) + ")" lines.append(attrdecl)