Hacking Binary2CCode

BullyWiiPlaza

Nintendo Hacking <3
OP
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
I made this little utility to convert a binary file to a C buffer. This is only interesting for developers.
I think that devkitPro also has something like this but since I didn't find it, I just made this tool. After all, it has a nice GUI:

lm78dpoc.png


This is useful to merge binary files into the source code such as the codehandler.bin into the TCPGecko.elf so you don't need the .bin file laying around anymore.

This is how the outcome might look like:
nrvyyxh8.png


The last part of the header file:

gjrqx5ej.png
Like it? Download the application JAR and the source code here.
 
Last edited by BullyWiiPlaza,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,375
Trophies
4
Location
Space
XP
13,984
Country
Norway
I made this little utility to convert a binary file to a C buffer. This is only interesting for developers.
I think that devkitPro also has something like this but since I didn't find it, I just made this tool. After all, it has a nice GUI:

lm78dpoc.png


This is useful to merge binary files into the source code such as the codehandler.bin into the TCPGecko.elf so you don't need the .bin file laying around anymore.

This is how the outcome might look like:
nrvyyxh8.png


The last part of the header file:

gjrqx5ej.png
Like it? Download the application JAR and the source code here.
I just checked. The tool in devKitPro is called raw2c and it's in the devkitARM\bin folder.
This tool is nice for those who prefer a GUI, but being able to convert files programatically (like batch converting with a bat file or a custom makefile) is more convenient, at least to me.
Maybe add a batch convert feature?
 
  • Like
Reactions: BullyWiiPlaza

BullyWiiPlaza

Nintendo Hacking <3
OP
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
I just checked. The tool in devKitPro is called raw2c and it's in the devkitARM\bin folder.
This tool is nice for those who prefer a GUI, but being able to convert files programatically (like batch converting with a bat file or a custom makefile) is more convenient, at least to me.
Maybe add a batch convert feature?
Yeah, I will add that :P
 

DonnieV

Active Member
Newcomer
Joined
May 2, 2017
Messages
29
Trophies
0
Age
28
XP
79
Country
United States
Nice work. I was wondering why the "Press X for codehandler" was missing in the latest jGeckoU lol
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Stop doing drugs