Code.bin and exh.bin to elf?

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
12
Trophies
0
Age
24
XP
90
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
90
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
90
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
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
  • Psionic Roshambo @ Psionic Roshambo:
    Why so serious!
  • Psionic Roshambo @ Psionic Roshambo:
    @BakerMan, yeah that's about the only reason I would vote for Trump over Biden.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    In my opinion on all other factors they are pretty much the same.
    +1
  • Veho @ Veho:
    Economy was better under Trump, according to Fox News.
    +1
  • Veho @ Veho:
    I don't give a fuck about what happens to America but I would like it if your shit didn't spill out on the rest of the world, thank you.
    +3
  • AncientBoi @ AncientBoi:
    A Far Right news service company
  • AncientBoi @ AncientBoi:
    I give a fuck about what happens to America but I would like it if our shit didn't spill out on the rest of the world, thank you.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    @Veho, didn't need any news. Just going to the store and buying groceries is a constant reminder.
  • Veho @ Veho:
    A reminder that all corporations reported record profits these last few years?
  • Veho @ Veho:
    Reminded that every single price gouging law was blocked by republicans because "muh gubmint overreach"?
  • Veho @ Veho:
    Won't somebody please think of the corporations?!?!
  • Psionic Roshambo @ Psionic Roshambo:
    The problem with X party blocked X bill that would have prevented X is that yes the bill probably would have worked great, buuuttt they put XYZDCBG in said bill as an attempt to sneak things in that tend to be completely unrelated to the original bills intent. It sucks because if they would just do a single thing they could probably get something done...
  • Psionic Roshambo @ Psionic Roshambo:
    But congressman X needs to have government funding for his cousins unicycle business
  • Psionic Roshambo @ Psionic Roshambo:
    It's a sad state of affairs
  • Psionic Roshambo @ Psionic Roshambo:
    Rotflmao
  • Psionic Roshambo @ Psionic Roshambo:
    Mom I don't want to do homework!!!
    Psionic Roshambo @ Psionic Roshambo: Mom I don't want to do homework!!!