Closed shane-tw closed 7 years ago
Agreed, this would be a good addition.
Maybe this could be added in the form of a virtual file when mounting a NCCH
-container? Code compression isn't a property of the .code
contained in the exefs
, rather it's enabled by a flag in the exheader
of a NCCH
. So instead of
romfs/
...
exefs/
|- .code
|- banner
`- icon
wouldn't it be possible to have something along the lines of
romfs/
...
exefs/
|- .code (<- this is the uncompressed arm11 code)
|- .code.lzss
|- banner
`- icon
?
I'd like to contribute my interest into this as well. It would be useful for extracting DSP1 firmware via script without the need for special homebrew.
Just as a note - good sample code for decrypting the code is found here: https://github.com/zoogie/DSP1/blob/master/source/main.c
Thanks, @AnalogMan151
With that I would love if we had a way to simply dump dspfirm.cdc from one of the drives that already exist rather than manually using other script commands to find and pull dspfirm from home menu or mset.
Adding this as an option to the context menu would be nice, as it'd mean not having to run
in ctrtool afterwards.