cnfatal / rpycdec

Tools to decompile renpy .rpyc .rpymc files.
https://pypi.org/project/rpycdec
MIT License
14 stars 3 forks source link

Update util.py #11

Closed el-garro closed 6 months ago

el-garro commented 6 months ago

Fixed get_code_properties to accept tuples of any size in the props parameter, instead of only 2. Examples (found in real games):

[('linear', '0.5'), ('alpha', '1.0', None)]
[('zoom', '2', None)]

Also ignoring None on any position to make it congruent with the function docstring, because the second usage example implies a (None, "b") should return "b" and the current implementation returns "None b".

cnfatal commented 6 months ago

nice, thank you