Closed gblues closed 1 year ago
Hi @gblues , usage of the library for Wii U homebrew sounds like a great idea. I would like to accept related modifications. Saying this, I would like to prevent introduction of additional dependencies like usage of Zip library.
Do you think it is possible to work with compressed data at level upper to ELFIO API? The API provides access to raw section data, so, it should be doable. In case it is absolutely necessary to make conversions 'from inside', introduction of corresponding callback may help.
What is your opinion?
Thank you
That's a pretty reasonable concern. Lemme see what I can come up with.
@serge1 please take a look at the most recent commit, which leverages dependency inversion to remove the zlib dependency previously introduced.
The implementation looks good! Thank you very much!
A question: Does Wii U name is actually required for the interface name? Are you aware about other solutions/architectures that use compressed section data?
I also should think more about introducing of 'cerr' stream. The library didn't use this error reporting mechanism untill now.
Accepted and Merged.
Thank you again
There's an existing SHF_COMPRESSED
flag so .. maybe? I don't have the expertise to design a more general-case interface.
If I knew how to do it, what I would do is take a crack at implementing SHF_COMPRESSED
support and see if you can do it with the interface I created; if so, then go ahead and rename it something more general.
Hey!
With a few tweaks, this library is super-useful for making Wii U homebrew. I'm contributing those tweaks back in this PR.
Change summary:
SHT_RPL_EXPORTS
SHT_RPL_IMPORTS
SHT_RPL_CRCS
SHT_RPL_FILEINFO
SHF_RPX_DEFLATE
SHF_RPX_DEFLATE
flag set