Hacking [Question] Using a custom R4.dat file on R4i-SDHC?

RocketRobz

Stylish TWiLight Hero
OP
Developer
Joined
Oct 1, 2010
Messages
16,659
Trophies
3
Age
25
XP
21,153
Country
United States
So I made a .nds file that boots into SRLoader.
I want to use it as R4.dat for autobooting into SRLoader, but I just get a "? Menu" screen.
So, I tried changing the arm7 entry offset to the one from the regular R4.dat file, and even DLDI-patching it, but same result.
There's probably something in the regular R4.dat file that's making the card accept it.
Anyone figured out how to run a custom R4.dat file?
 

Sha8q

Well-Known Member
Member
Joined
Mar 31, 2018
Messages
234
Trophies
0
XP
502
Country
Jamaica
So I made a .nds file that boots into SRLoader.
I want to use it as R4.dat for autobooting into SRLoader, but I just get a "? Menu" screen.
So, I tried changing the arm7 entry offset to the one from the regular R4.dat file, and even DLDI-patching it, but same result.
There's probably something in the regular R4.dat file that's making the card accept it.
Anyone figured out how to run a custom R4.dat file?
Not sure if this will help, but I compared the YSMenu R4.dat and the normal YSMenu.nds to it. There were very few changes when I compared them, and only about eight bytes were different being five numbers or letters off.
 

DeadSkullzJr

Developer
Developer
Joined
Sep 28, 2017
Messages
1,560
Trophies
1
XP
3,902
Country
United States
I know someone made tiny modifications to the ysmenu binary to get it working on r4isdhc.com and r4i-sdhc.com cards:

https://www.reddit.com/r/3dshacks/comments/48oju8/ys_menu_on_r4isdhccom_cards_as_primary_kernel/

Unfortunatelly, he did not disclose *how* he figured out what to change.
To be honest, I took a look into this myself. It seems the only thing he did was chance the file extension from .nds to .dat. So basically it looks like the file was renamed from YSmenu.nds to R4.dat. If you throw it in a hex editor and compare the .nds to the "modified" .dat, it practically is the same exact file. He may have removed some bytes or so to prevent it from breaking with any possible future YSmenu updates, that part I do not know.
 
Last edited by DeadSkullzJr,

Sha8q

Well-Known Member
Member
Joined
Mar 31, 2018
Messages
234
Trophies
0
XP
502
Country
Jamaica
To be honest, I took a look into this myself. It seems the only thing he did was chance the file extension from .nds to .dat. So basically it looks like the file was renamed from YSmenu.nds to R4.dat. If you throw it in a hex editor and compare the .nds to the "modified" .dat, it practically is the same exact file. He may have removed some bytes or so to prevent it from breaking with any possible future YSmenu updates, that part I do not know.
That isn't the case, but you are close. I used the compare option in HxD which tells you any small difference. They are very similar though, and I really wonder how anyone figured this out. You are right for the similar part, I was amazed by how similar these files were. I actually tested the R4.dat on my R4iSDHC and my R4i-SDHC and the YSMenu autoboot works perfectly
 
Last edited by Sha8q,

DeadSkullzJr

Developer
Developer
Joined
Sep 28, 2017
Messages
1,560
Trophies
1
XP
3,902
Country
United States
That isn't the case, but you are close. I used the compare option in HxD which tells you any small difference. They are very similar though, and I really wonder how anyone figured this out.
Ah, I didn't use that, I used the naked human eye lol. They probably did numerous tests and figured it out. I am actually trying to figure this out for some carts out there.
 

Sha8q

Well-Known Member
Member
Joined
Mar 31, 2018
Messages
234
Trophies
0
XP
502
Country
Jamaica
Ah, I didn't use that, I used the naked human eye lol. They probably did numerous tests and figured it out. I am actually trying to figure this out for some carts out there.
Lol, when I tried to compare it with my eyes I saw nothing. Then I googled how to compare files on HxD (lol) and found the answer online.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Ancientboi is old he needs Walmart PA system
    +2
  • AncientBoi @ AncientBoi:
    Splitter @ $39 it says. I'll consider it. Thanks
  • K3Nv2 @ K3Nv2:
    Coupon makes it 30
  • K3Nv2 @ K3Nv2:
    My gaming stick can finally get use
  • K3Nv2 @ K3Nv2:
    I did see Walmart got new electric scooters now ab won't run out of juice in the middle of the parking lot
    +1
  • AncientBoi @ AncientBoi:
    :O:O:O $12. Cool
  • K3Nv2 @ K3Nv2:
    Yeah but one two ports
    +1
  • K3Nv2 @ K3Nv2:
    I'd rather spend like $15 more for double
    +1
  • K3Nv2 @ K3Nv2:
    Lol hogwarts legacy has a Arachnophobia setting to turn on
  • BigOnYa @ BigOnYa:
    I'd rather spend like $150 more for a surround receiver.
  • K3Nv2 @ K3Nv2:
    I bought the game at launch never fucked with it until recently
  • BigOnYa @ BigOnYa:
    Its fun, I like it, even tho I'm not a big harry potter fan. Like a wizard rpg. Flying around on a broomstick is cool.
  • K3Nv2 @ K3Nv2:
    Flying sucks ass on it
  • BigOnYa @ BigOnYa:
    Nuh just takes a min to get used to. I think you can upgrade or buy new broomstick also that are better.
    +1
  • K3Nv2 @ K3Nv2:
    I weirdly like inverted controls on all flying type games
  • BigOnYa @ BigOnYa:
    Prob can change it, inverted flying controls.
  • K3Nv2 @ K3Nv2:
    Only thing that annoys me is trying to find wtf to do in it
    +1
  • BigOnYa @ BigOnYa:
    Alright off to the store, later gators.
    +1
  • K3Nv2 @ K3Nv2:
    Some places amaze me were not in network with your insurance would you still like an appointment
    +1
  • AncientBoi @ AncientBoi:
    uhhh, I think I'll just stick with my PSP 3001
  • AncientBoi @ AncientBoi:
    lol, Now I gotta go to the store for more Coffee Mate n other stuff.
    AncientBoi @ AncientBoi: lol, Now I gotta go to the store for more Coffee Mate n other stuff.