Homebrew How can I slice my .code in sections ?

  • Thread starter Thread starter Mrrraou
  • Start date Start date
  • Views Views 1,182
  • Replies Replies 5

Mrrraou

Well-Known Member
Member
Joined
Oct 17, 2015
Messages
1,873
Reaction score
2,223
Trophies
0
XP
2,394
Country
France
I want to slice a .code from a ExeFS and I have the exheader. I tried to read myself the values with an hex editor (with the help of the Citra source code) to get size and location of sections. But it seems that the values I retrieved are incorrect. Would someone please help me with that ?

EDIT: Structure of the NCCH Extended Header (Exheader): http://3dbrew.org/wiki/Exheader
 
Last edited by Mrrraou,
I think you should just be able to extract everything using ctrtool.
Or by using my tool :P
Your tool is about editing romfs/exefs, but I'm talking here about the .code located in the exefs. ctrtool can't do that (as far as I know).
 
Your tool is about editing romfs/exefs, but I'm talking here about the .code located in the exefs. ctrtool can't do that (as far as I know).
Well you can extract the exefs to get the icon, banner, logo and the code!
You can use ctrtool -t exefs --exefsdir=exefs --decompresscode yourexefs.bin.
If you don't feel like doing this, use my tool. It just does that for you lol
 
Well you can extract the exefs to get the icon, banner, logo and the code!
You can use ctrtool -t exefs --exefsdir=exefs --decompresscode yourexefs.bin.
If you don't feel like doing this, use my tool. It just does that for you lol
I have the .code file. I just want to slice it in sections, to get the .text, the .data and the .rodata.
 

Site & Scene News

Popular threads in this forum