RenPy-Unpacker: Initial commit

This commit is contained in:
OleSTEEP 2023-07-06 14:14:07 +03:00
parent e51a271a38
commit b2335509e3
4 changed files with 24 additions and 3 deletions

12
RenPy-Unpacker/unpack.rpy Normal file
View file

@ -0,0 +1,12 @@
init 4 python:
import os
for asset in renpy.list_files():
if os.path.splitext(asset)[1] != ".rpa":
output = "unpack/game/" + asset
if not os.path.exists(os.path.dirname(output)):
os.makedirs(os.path.dirname(output))
out_bytes = open(output, "wb")
out_bytes.write(renpy.file(asset).read())
out_bytes.close()