Code.bin and exh.bin to elf?

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
12
Trophies
0
Age
24
XP
92
Country
United States
I am trying to convert these two files in to an elf for ida pro, but Patchrom's script doesn't work (I've tried debugging it.) Is there a better way to do this?
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,472
Country
Canada
Please don't start multiple threads needlessly.
https://gbatemp.net/threads/how-to-extract-code-bin.653494/

You left the important question in your other post.
Now my brain is on fire trying to debug patchrom's script to convert code.bin and exh.bin to an elf, none of the functions are working, and windows cmd can't take a file path with spaces... Is there a better way to do this?

See, instead of asking "how can I do this", shouldn't you be asking "how can I use file paths with spaces"?

The most straightforward way would be to simply put your files in a new path without spaces in it. Alternatively, you can enclose the path in double quotes. If you use "dir /x" on the command line you can also get the corresponding short file name for each file or folder and use that instead. (Often it ends in "~1", but things get complicated when there are many files with similar names.)
 

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
12
Trophies
0
Age
24
XP
92
Country
United States
Please don't start multiple threads needlessly.
https://gbatemp.net/threads/how-to-extract-code-bin.653494/

You left the important question in your other post.


See, instead of asking "how can I do this", shouldn't you be asking "how can I use file paths with spaces"?

The most straightforward way would be to simply put your files in a new path without spaces in it. Alternatively, you can enclose the path in double quotes. If you use "dir /x" on the command line you can also get the corresponding short file name for each file or folder and use that instead. (Often it ends in "~1", but things get complicated when there are many files with similar names.)
Program Files for the gcc arm compiler? I've also attempted double quoting, escape characters, but can't move the arm compiler out of program files without messing with environmental variables. The folder structure inside the folder has spaces in the folders names themselves. "dir /X" returns what dir normally returns.
Help Log:
Code:
 If no short name is present, blanks are displayed in its place.
The short name is not present, and yes, the registry values confirm my C drive has short names available.

I have tried searching before posting, but I also asked for an alternative for patchrom (a 10 year old script collection made for a previous version of windows, not for 11, and not the most recent version of python either.) Finally, sorry for starting a new thread, but keep in mind I still am learning this forum's etiquette. (Then again, that is not a good excuse.)
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,472
Country
Canada
Well, I could try to offer suggestions about what you could do differently, but it's a bit pointless to do so without knowing more about what you tried.
 

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
12
Trophies
0
Age
24
XP
92
Country
United States
Well, I could try to offer suggestions about what you could do differently, but it's a bit pointless to do so without knowing more about what you tried.
Gave what I tried. You skimmed through what I wrote.
See if this script works better for you, that's what I personally use for getting ELFs: https://github.com/NWPlayer123/ctr-elf2
Worked without a hassle. Thank you.
Post automatically merged:

What should I do next? I see strings relating to ingame objects, but no code (C or ASM). Edit: Using IMHEX.
 
Last edited by coolmodder,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • T @ Texasauras:
    which one are you gonna get
  • T @ Texasauras:
    what why its worth a shot
  • BigOnYa @ BigOnYa:
    Get you raspberry pi5, and you can play gamecube, wii, and ps2 games also. Those won't
  • T @ Texasauras:
    did you see them on google? preloaded rom consoles
  • T @ Texasauras:
    where is that which one is that
  • BigOnYa @ BigOnYa:
    Those preloaded ones are junk. You can Google raspberry Pi and find where they are sold near you, or on amazon.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i don't think my parents will get me a pi
  • BigOnYa @ BigOnYa:
    You can get older ones even like the pi 3,4 for cheap, but they don't play gamecube, Wii etc very well. Be warned they use a Linux os, which you need to load onto a micro SD card yourself. You can find pre built images like "retro-pie" online free tho which makes it easy to setup.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i don't have my own money
  • T @ Texasauras:
    mannn thats insane, mario on n64
  • BigOnYa @ BigOnYa:
    Now you are 15, you can go get a real job, somewhat.
  • T @ Texasauras:
    its like $80 bro lmao
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i'm too young and stupid and i don't have time to work
  • T @ Texasauras:
    it runs on android os
  • T @ Texasauras:
    it looks dope
  • BigOnYa @ BigOnYa:
    You get what you pay for. Go ahead and buy one those cheap Chinese units, you will see.
  • T @ Texasauras:
    bro have you seen the gfuel instagram
  • BigOnYa @ BigOnYa:
    @Texasauras why did you start a thread, ignored all the answers there, then come here to chat and ask the same thing. You gotta be like 12, bro
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Biker Mice from Mars needed a Sequel, Angry Hamsters from Uranus
  • T @ Texasauras:
    uh bro i was just asking have you seen these, help me look
  • T @ Texasauras:
    its on amazon
  • Psionic Roshambo @ Psionic Roshambo:
    Download Batocera make it your own
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    If you want GC PS2 Wii stuff like that use a PC
    +1
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, i also use my tv stick to watch YouTube and streaming services
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, i also use my tv stick to watch YouTube and streaming services