Allows unpacking renpy 8 archives
This commit is contained in:
parent
9a58396f95
commit
e42af42d9e
1 changed files with 4 additions and 1 deletions
5
rpatool
5
rpatool
|
@ -17,7 +17,10 @@ if sys.version_info[0] >= 3:
|
|||
return text
|
||||
|
||||
def _unmangle(data):
|
||||
return data.encode('latin1')
|
||||
if type(data) == bytes:
|
||||
return data
|
||||
else:
|
||||
return data.encode('latin1')
|
||||
|
||||
def _unpickle(data):
|
||||
# Specify latin1 encoding to prevent raw byte values from causing an ASCII decode error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue