2 ms·
> Just struct declarations are enough To echo this with code, I've open sourced my collection of game archive unpackers. Given how similar they all are, this i
by Shish2k 11y ago
> Just struct declarations are enough
To echo this with code, I've open sourced my collection of game archive unpackers. Given how similar they all are, this is a typical example of how to add a new decoder:
https://github.com/shish/pyge/blob/master/archive/PackDat3.py https://github.com/shish/pyge/blob/master/archive/PackDat3.p...
(Note that two of those 6 short strings are user-friendliness metadata and can be omitted, and one of the others is redundant -- "Magic Bytes", "Header Format" and "Directory Entry Format" are all you really need in most cases)