Homebrew Official [Release] GodMode9 - All Access File Browser for the 3DS

  • Thread starter d0k3
  • Start date
  • Views 307,557
  • Replies 1,143
  • Likes 105

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,690
Trophies
1
Age
28
Location
Imola
XP
6,911
Country
Italy
can friendsave.bin and seedsave.bin be dumped?
They're just convenient shortcuts to encrypted nand saves:
https://www.3dbrew.org/wiki/System_SaveData
https://github.com/d0k3/Decrypt9WIP...60ce63e1c0cf66/source/decryptor/nandfat.c#L56

Is it possible to use GodMode9 to get my original "secret sector" from my emunand?
It should be under "emunand virtual"/sector0x96.bin, but I don't know if it's encrypted or decrypted, nor if it can be safely copied this way...
(Upgrading to sighax with SafeB9SInstaller will flash a genuine N3DS secret_sector; on O3DS it doesn't matter anyway as long as you're not running a N3DS kernel (which is how A9LH works)

can I use this to edit game soundtracks with my own music?
Romfs editing isn't supported (it's an archive, itself a layer inside the NCCH, with multi-level hashing; it would be too slow to be practical on a 3DS)

Consider using Luma's game patching (layeredfs) if you want an incremental patch, or extracting and recompressing a cia if you want to really integrate your mods in the game
 

BL4Z3D247

GBAtemp Stoner
Member
Joined
Oct 22, 2008
Messages
1,942
Trophies
0
Age
39
Location
I'm so high, I don't even know!
XP
1,229
Country
United States
You could have looked in the readme. That option only turns up if you have enough free space, and that can be different from console to console (even among same type).
I did look for the answer in the readme. Enough free space where though, I'm assuming SD card space as the readme says "The bonus drive can be setup via the HOME menu on 3DS consoles that provide the space for it.". If that's the case I have plenty of space. 59.6GB as shown in the pictures of each console.
5IeKEfl.jpg
dj5vvQb.jpg

Edit: Oh I see, you mean Home Menu of GodMode9. That's where I was confused. But I'd still like to know where I'd need the free space as my SD card has plenty on both consoles and the option only pops up on one.
 
Last edited by BL4Z3D247,

redunka

Well-Known Member
Member
Joined
Nov 26, 2014
Messages
432
Trophies
0
Age
29
XP
2,554
Country
Russia
Hi, @d0k3. Sorry for bothering you.
I'm probably doing something wrong, but GodMode9 doesn't seem to be detecting BOSS files.
The files I'm trying to decrypt do have a valid BOSS header, but, when I press A on them, the only options I see are "Show in Hexeditor", "Calculate SHA-256" and "Copy to 0:/gm9out".
I have tried both the latest stable and the latest nightly of GodMode9, if that matters.
Decrypt9 still does decrypt those files fine, but I would rather ditch it, to be honest.
Is there something that I'm missing?

EDIT: Funny thing, out of four files it recognized as BOSS only the smallest one (which is few kB in size, three others are more than 10 MB each).
 
Last edited by redunka,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I did look for the answer in the readme. Enough free space where though, I'm assuming SD card space as the readme says "The bonus drive can be setup via the HOME menu on 3DS consoles that provide the space for it.". If that's the case I have plenty of space. 59.6GB as shown in the pictures of each console.
View attachment 88275
View attachment 88276

Edit: Oh I see, you mean Home Menu of GodMode9. That's where I was confused. But I'd still like to know where I'd need the free space as my SD card has plenty on both consoles and the option only pops up on one.
You need that space on your NAND, of course.

Hi, @d0k3. Sorry for bothering you.
I'm probably doing something wrong, but GodMode9 doesn't seem to be detecting BOSS files.
The files I'm trying to decrypt do have a valid BOSS header, but, when I press A on them, the only options I see are "Show in Hexeditor", "Calculate SHA-256" and "Copy to 0:/gm9out".
I have tried both the latest stable and the latest nightly of GodMode9, if that matters.
Decrypt9 still does decrypt those files fine, but I would rather ditch it, to be honest.
Is there something that I'm missing?

EDIT: Funny thing, out of four files it recognized as BOSS only the smallest one (which is few kB in size, three others are more than 10 MB each).
Can you maybe upload these files somewhere and send me a pm?
 

BL4Z3D247

GBAtemp Stoner
Member
Joined
Oct 22, 2008
Messages
1,942
Trophies
0
Age
39
Location
I'm so high, I don't even know!
XP
1,229
Country
United States
You need that space on your NAND, of course.
OK, in that case the console that does not display the option to setup bonus drive has more space on the NAND than the one that displays the option.

I don't mean to sound like I'm bugging you, just thought maybe something was up. How much free space is needed?
KEeqwt4.jpg <--- option present
WanrnXY.jpg <--- option not present

Edit: Is that used space or free space that is displayed under "Directory info"?
 
Last edited by BL4Z3D247,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
OK, in that case the console that does not display the option to setup bonus drive has more space on the NAND than the one that displays the option.

I don't mean to sound like I'm bugging you, just thought maybe something was up. How much free space is needed?
View attachment 88284 <--- option present
View attachment 88285 <--- option not present

Edit: Is that used space or free space that is displayed under "Directory info"?
You got that wrong. This is about the size of your NAND chip. Take a look at S:/nand.bin, that file has the same size as your NAND chip, and for many consoles there is a large portion of unused memory after the end of the actual data.
 

BL4Z3D247

GBAtemp Stoner
Member
Joined
Oct 22, 2008
Messages
1,942
Trophies
0
Age
39
Location
I'm so high, I don't even know!
XP
1,229
Country
United States
You got that wrong. This is about the size of your NAND chip. Take a look at S:/nand.bin, that file has the same size as your NAND chip, and for many consoles there is a large portion of unused memory after the end of the actual data.
OK, thank you for explaining that further. Much appreciated.

That explains why my 2DS which shows the option, it has a larger NAND chip. Thanks again for taking the time to respond.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
They mount fine, but the ncch content fails to decrypt.
file:
SD_SystemUpdater_SNAKE-0_25_4-US.cia
md5 164c465755741d80208a4a420b8704e2
Did you provide the dev keys via aeskeydb.bin or slot0x??key?.bin? Also tried it on boot9strap?
 

Quantumcat

Dead and alive
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
I'm trying to figure out a way to backup and restore the PTM savegame, which as far as I can figure out (https://www.3dbrew.org/wiki/PTM_Savegame or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/PTM_Savegame ) includes the per-day play log and pedometer log (which would be shown in the top part of Activity Log).

I can't figure out how to do it.

According to https://www.3dbrew.org/wiki/System_SaveData or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/System_SaveData , PTM is 0x10022 and the savedata would be in data/ID0/sysdata/00010022/00000000.

Using GodMode9 I went to "1: SYSNAND CTRNAND"/data/(ID0)/sysdata/00010022/00000000", which seems to be the right place. However, this is not a directory containing files Pedometer.dat and PlayHistory.dat, but a single file named "00000000".

Trying to copy the 00000000 directly to the other console, copying from SD, and pasting it into the same place I got it from didn't work. It did erase the previous data, so at least I know this is the right place. I presume I have to decrypt it using decrypt9 and reencrypt it on another machine, or at least extract and inject the Pedometer.dat and PlayHistory.dat. However, I don't know how to do that. Can someone help me with this?

Edit: I found https://www.3dbrew.org/wiki/Savegames (or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/Savegames ) but that's no use to me as is. Is there some tool that can do it?
Did you ever figure this out?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I'm trying to figure out a way to backup and restore the PTM savegame, which as far as I can figure out (https://www.3dbrew.org/wiki/PTM_Savegame or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/PTM_Savegame ) includes the per-day play log and pedometer log (which would be shown in the top part of Activity Log).

I can't figure out how to do it.

According to https://www.3dbrew.org/wiki/System_SaveData or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/System_SaveData , PTM is 0x10022 and the savedata would be in data/ID0/sysdata/00010022/00000000.

Using GodMode9 I went to "1: SYSNAND CTRNAND"/data/(ID0)/sysdata/00010022/00000000", which seems to be the right place. However, this is not a directory containing files Pedometer.dat and PlayHistory.dat, but a single file named "00000000".

Trying to copy the 00000000 directly to the other console, copying from SD, and pasting it into the same place I got it from didn't work. It did erase the previous data, so at least I know this is the right place. I presume I have to decrypt it using decrypt9 and reencrypt it on another machine, or at least extract and inject the Pedometer.dat and PlayHistory.dat. However, I don't know how to do that. Can someone help me with this?

Edit: I found https://www.3dbrew.org/wiki/Savegames (or http://webcache.googleusercontent.com/search?q=cache:https://www.3dbrew.org/wiki/Savegames ) but that's no use to me as is. Is there some tool that can do it?
Missed that. @Jiro2, what you have to do after copying that data is, fix the CMAC (the option is in the A button menu) for the new system. @Quantumcat maybe you want to try this, too.

I tried to add the needed keys manually and no luck. Yes, I'm using b9s as well.
I may have an idea what goes wrong there... are you trying to decrypt dev content on a retail unit? Also, did you already try this on A9LH? And, did it work then?

May make sense to open an issue on GitHub for it, it's a bug if it doesn't work on devkits.
 
  • Like
Reactions: Quantumcat

Jayro

MediCat USB Dev
Developer
Joined
Jul 23, 2012
Messages
12,973
Trophies
4
Location
WA State
Website
ko-fi.com
XP
17,004
Country
United States
I find this about 1,000 times less intuitive to use than Decrypt9 and FBI, in terms of NAND backup/restore and file manipulation within the CTRNAND. Sometimes, an "all-in-one" tool isn't always the best approach.
 
  • Like
Reactions: hobbledehoy899

Quantumcat

Dead and alive
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
I find this about 1,000 times less intuitive to use than Decrypt9 and FBI, in terms of NAND backup/restore and file manipulation within the CTRNAND. Sometimes, an "all-in-one" tool isn't always the best approach.
Maybe grab the code and make lots of little tools, one for each job, with a menu interface that you like :-)
I would probably try this if I had any confidence in my skills and I wouldn't probably be spending a week trying to compile it then giving up
 

hobbledehoy899

Well-Known Member
Member
Joined
Nov 13, 2015
Messages
2,874
Trophies
1
XP
2,192
Country
Antarctica
Hmmm, there's no boot9strap-compatible builds of SafeMode9... (Probably because you don't need condoms with a strap-on! :creep:)
I find this about 1,000 times less intuitive to use than Decrypt9 and FBI, in terms of NAND backup/restore and file manipulation within the CTRNAND. Sometimes, an "all-in-one" tool isn't always the best approach.
It's the same situation with Mednafen.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Hmmm, there's no boot9strap-compatible builds of SafeMode9... (Probably because you don't need condoms with a strap-on! :creep:)It's the same situation with Mednafen.
There are, look on my hourlies page (in my signature below).

And, well. I'm getting tired of "D9 / HG9 is better than GM9" posts. From an implementation standpoint they are clearly not. From a functionality standpoint, neither. The "more intuitive" argument is basically just "I did it that way forever, and I'm too lazy to start doing it another way". The NAND backup / restore may even require *LESS* keypresses in GM9 than it did in D9/HG9.

And, again, I'm not stopping anyone from holding onto D9/HG9, so I really don't get what all these complaints are about. I even did a new boot9strap compatibility release for both a few days ago. It's just that D9 and HG9 won't get any more new features or improvements (from my side, everyone is free to continue development), cause I really feel that at this point this is no more than putting lipstick on a pig.
 
  • Like
Reactions: hobbledehoy899

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Plus a lot of the times they just seemed half hearted attempts