mborgerson / pyxbe

Python 3 library to read and write XBE files, the executable file format for the original Xbox game console
http://pyxbe.readthedocs.io/
MIT License
17 stars 10 forks source link

Preserve original name of renamed sections in the name field #17

Closed thrimbor closed 2 years ago

thrimbor commented 2 years ago

This is related to https://github.com/mborgerson/pyxbe/pull/12 and only affects the output of XBEs which have duplicated section names. Previously, the name of the duplicate was changed both in the dictionary and in its name field. This changes makes it so that pyxbe uses the original name for the name field, causing these two to differ, but preserving the original name, which is the desired behavior for a tool I'm currently working on.