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,387
Trophies
4
Location
Space
XP
14,021
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
  • No one is chatting at the moment.
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
  • K3Nv2 @ K3Nv2:
    All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
  • K3Nv2 @ K3Nv2:
    @BigOnYa, tell your wife not to forget her wallet
    +1
    K3Nv2 @ K3Nv2: https://youtu.be/YMAa6obDNZs?si=rymChLKeTdyS8nqk