Skip to content

Commit

Permalink
Bugfix for renpy imagepack support: now paths in layeredimage use '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengjie Xu committed Jul 27, 2024
1 parent a9d4c23 commit bf5de57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preppipe/renpy/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bf5de57

Please sign in to comment.