ROM Hack romfs redirection and disassembly question

Bastani

Well-Known Member
OP
Newcomer
Joined
Mar 13, 2016
Messages
77
Trophies
0
Age
28
XP
247
Country
Canada
Is it hard to write code to the code.bin to make it access the romfs from the update instead of the game itself? how do you even begin to mount it?

I've seen different code for games but they already initialized their own update patch directory.
The game itself has a dlc that has a romfs but to just compile all the contents together seems like a real pain.

Also are there any programs there that can convert the code.bin into assembly code or anywhere that I can check to see the assembly functions for the 3DS so I can translate the functions? Maybe then I can figure out how to mount a second romfs.
 

NCDyson

Hello Boys...
Member
Joined
Nov 9, 2009
Messages
278
Trophies
1
XP
319
Country
United States
according to 3dbrew:
https://www.3dbrew.org/wiki/Filesystem_services#ArchiveResource:
The raw FS image for the main CXI RomFS(for the current app this is accessible via archiveid 0x3) can be accessed via an all-zero 0xc-byte binary file-lowpath. The update RomFS for the current app can be accessed with the first u32 in the binary file-lowpath being set to 0x5. This allows access to the raw level-3 IVFC image: the user process must handle parsing the filesystem used in this image itself.

As far as making the game mount and utilize it goes, you may have to study the differences between the code.bin from a game and the code.bin from an update to see how to make that work.
 

Bastani

Well-Known Member
OP
Newcomer
Joined
Mar 13, 2016
Messages
77
Trophies
0
Age
28
XP
247
Country
Canada
according to 3dbrew:


As far as making the game mount and utilize it goes, you may have to study the differences between the code.bin from a game and the code.bin from an update to see how to make that work.

Do you think it's possible to take something like layeredfs and make it run from the code.bin and either get it to read from the romfs or the SD itself?
 

GalladeGuy

Cool and Epic
Member
Joined
Oct 28, 2015
Messages
2,686
Trophies
1
XP
3,115
Country
United States
Also are there any programs there that can convert the code.bin into assembly code or anywhere that I can check to see the assembly functions for the 3DS so I can translate the functions?
Use the latest version of IDA Pro. Start it up, open code.bin and select ARM (Little-Endian) as the processor type. Then press "edit" on the toolbar and then select all. Then, click on the little thing on the toolbar that says "code" and then "force". It'll take a while, but when its done you'll have some ARM Assembly code that you can copy into a file for safe keeping.
 
  • Like
Reactions: DesuIsSparta

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    DinohScene @ DinohScene: Better start running in your hamster wheel