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)