Godmode9: Feature Request - Reverse-LZSS Decompress exefs/.code to code.bin

Created on 15 Jun 2017  路  6Comments  路  Source: d0k3/GodMode9

Adding this as an option to the context menu would be nice, as it'd mean not having to run

ctrtool -t lzss --lzssout=code.bin .code

in ctrtool afterwards.

feature request

Most helpful comment

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eiiiiix picture eiiiiix  路  10Comments

TurdPooCharger picture TurdPooCharger  路  12Comments

zoogie picture zoogie  路  4Comments

Jisagi picture Jisagi  路  6Comments

NWPlayer123 picture NWPlayer123  路  12Comments