Goldleaf - A Nintendo Switch multipurpose homebrew tool




Goldleaf is multipurpose homebrew tool for Nintendo Switch.​


Features

Goldleaf has a very similar concept to FBI, which is a similar tool for Nintendo 3DS homebrew.

These are its main features:

  • SD card browser: A simple but fully equiped file browser for the SD card, supporting several file formats (such as NSP, NRO, NACP, NXTheme, JPEG, tickets...), and with support for copying, pasting, renaming, deleting and creating files and directories.

  • Console memory browser: Same browser but to be used with NAND partitions, which also warns when writing or deleting content as it can be dangerous.

  • Remote PC browser: Via this feature, one can browse a PC's drives like any other filesystem, connected by a USB-C cable.

  • Content manager: Browse any kind of content in your SD card, console memory or game cartridge. You can browse all the NCAs, and as title options, you can remove the content, or export it as a NSP. NAND SYSTEM contents (system titles or contents) aren't allowed to be deleted. Invidual contents such as updates or DLC can be removed individually.

  • Ticket manager: Browse all tickets, both common and personalized. You can remove them, but an extra warning will be displayed when attempting to remove tickets being used by some content.

  • Web browser (web applets): Using the console's web applets, Goldleaf allows to search and navigate through web pages. If Goldleaf is launched through hbmenu as a NRO, WifiWebAuth applet will be used, which tends to fail sometimes, along with fewer features, such as lack of video support.

  • User account manager: Select a user account, and easily change things as the user's nickname or even delete it. Via the file browsers you can replace a user's icon with a JPEG image, but it can be a risky action. The icon needs to be a valid JPEG, with 256x256 dimensions. Goldleaf checks if the icon is valid to replace the other one.

  • Console information: Simple menu to see current firmware string, and the total free and occupied size on SD card and console memory.
Among all this features, Goldleaf is a very intuitive tool, with a fancy UI, and fully translated into 5 different languages: English, Spanish, German, French and Italian.

Common controls
  • (L-stick / D-pad) Move through the current menu

  • (R-stick) Move slightly faster through the current menu

  • (ZL / ZR) Show a dialog to shut down or reboot the console.
NRO version
  • (+ / -) Exit the application in order to return to hbmenu.
Disclaimer

NSP installs

Always keep in mind that installing NSPs can be a very easy way to get banned. If you use airplane mode and special DNSs like 90DNS, there is a smaller chance to get banned.

NEVER install untrusted NSPs. Goldleaf can identify (according to the NSP's application ID) whether the NSP is a homebrew NSP (IDs starting with "05", usually for forwarders), or a regular title (official ID range just allows IDs starting with "01")

Tickets

Tickets represent a game purchase, but technically speaking, you can't boot a title if the ticket isn't present (in case the title requires the ticket).

NSPs which don't have (nor require) a ticket are "standard crypto" NSPs. Standard-crypto titles aren't offical (usually reconverted content to avoid importing tickets).

Goldleaf will display whether a ticket is present or not, and if so, it's titlekey. Titlekeys are required to decrypt and access titles' content which require a ticket. Otherwise, they are undecryptable, hence unlaunchable by the system.

TL;DR: Always try to avoid untrusted NSPs, and if you go ahead and install CDN NSPs with tickets, avoid going online, or use special tools such as 90DNS, or you'll be banned for sure.

Forwarding

Goldleaf is released along with a NSP, in order to launch Goldleaf as an installed title, and take advantage of extra RAM and features such as web browsing.

The NSP is a forwarder since 0.6, what means that, instead of having Goldleaf's source inside the NSP, it simply loads the NRO from the SD card, meaning that only the NRO should be updated instead of having to reinstall the NSP.

Goldleaf's forwarding code tries to locate Goldleaf (Goldleaf.nro) in sd:/switch/ and sd:/switch/Goldleaf/. If it isn't found, an error message is displayed.

Settings

Goldleaf supports the customization of colors, assets and other options via a JSON file located at Goldleaf's folder: sd:/switch/Goldleaf/settings.json.

Sample

This is an example JSON for Goldleaf settings:

Code:
{
   "general": {
       "customLanguage": "es",
       "keysPath": "/switch/prod.keys",
       "externalRomfs": "/switch/Goldleaf/theme/rom"
   },
   "ui": {
       "background": "#aabbccdd",
       "base": "#aabbccdd",
       "baseFocus": "#aabbccdd",
       "text": "#aabbccdd",
       "menuItemSize": 80
   },
   "installs": {
       "ignoreRequiredFwVersion": true
   }
}

If a certain attribute isn't present Goldleaf will use default values. For colors, Goldleaf will initially load default light/dark themes according to the console's theme color, and later, colors present in the JSON will be used instead of default theme ones.

Notes

Via RomFs replacement, when Goldleaf tries to locate, for instance, romfs:/FileSystem/FileDataFont.ttf resource font, if romfsReplace is true and romfsReplacePath is, for instance, /switch/Goldleaf/testromfs, Goldleaf will look if sd:/switch/Goldleaf/testromfs/FileSystem/FileDataFont.ttf exists and use it if so, otherwise will use RomFs's one.

So, via this configurations, UI's images, resources, element sizes and even translations (using custom JSON translations) can be used, plus some more assets which will be added in future updates.

Known bugs
  • On Atmosphère and SX OS, exiting Goldleaf via HOME menu (as a NRO) seems to crash the system on 7.x firmwares.

  • Remote PC browsing in general seems to have several bugs, most of them related to the UI system.
Contributing

If you would like to contribute with new features, you are free to fork Goldleaf and open pull requests showcasing your additions.

If you just would like to suggest new ideas, but without actual code implementations, you're free to open an issue. Please try not to duplicate those, if the idea or problem is already reported in another issue.

Translations

Read this before making any new translations:

  • Goldleaf's aim is to, mainly, support languages supported by the console itself, so those not yet supported by Goldleaf and which aren't supported by consoles should have less priority and won't be probably accepted.

  • UI (Plutonium) lacks special UTF16 characters, so some languages like Russian or Korean will not work, at least on the UI's current state.
Credits and support

Credits

The main concepts of Goldleaf are and have been developed by me (XorTroll), but without the effort and support of many others, this project wouldn't have been a thing:

  • Adubbz and all the (old) Tinfoil contributors, for their huge work with title installing.

  • C4Phoenix, for his awesome work doing this project's logo, and the GIF displayed when launching the installed forwarder.

  • All the graphics except Goldleaf's logo (see credit above) were grabbed from Icons8.

  • 2767mr, for all the support given in Goldtree.

  • Simon for his libusbK implementation for C#, which has made Goldtree client possible.

  • shchmue and blawar for the system to get titlekeys without breaking processes, found in Lockpick.

  • Translators: unbranched and exelix for Italian, tiliarou and FuryBaguette for French, and LoOkYe and C4Phoenix for German.

  • All the testers, for reporting bugs and helping a lot with the project's development.
Discord server and beta testing

If you would like to be more informed about my projects' status and support, you should check my Discord server. It's a simple server for Nintendo hacking and homebrew, mainly focused on my projects. If you would like to be a beta-tester, then this is what you're looking for.

Enjoy this amazing homebrew!
 
Last edited by XorTroll, , Reason: 0.6 README changes

renatosk

Well-Known Member
Newcomer
Joined
Jan 11, 2016
Messages
61
Trophies
0
XP
452
Country
Brazil
I don't have any fs_patches folder, just default_nogc. They aren't part of the latest kosmos or additional sigpatches zip. As mentioned I can install games from SD with goldleaf 0.5 and run them just fine, just no USB install. NXMTP USB transfers are also working fine.
I dont know if Xortroll knows the bug , but it is an know bug , we discussed here in this thread , i have the same problem on nightly 5.0 and i have the sigpatches , but i will just wait 0.5 to release and continue to use 0.3 until then which works fine.
 
Last edited by renatosk,
  • Like
Reactions: Deleted User

FanboyKilla

Well-Known Member
Member
Joined
Mar 9, 2019
Messages
287
Trophies
0
XP
1,084
Country
United States
It's probably using the internal FAT32 creation order.
you could use tools to sort the FAT32, but you need to do it every time you add a new file.

I know FATSort, but it's for Linux.
there are tools for windows, but never tested them so I wouldn't want to recommend unknown/untested tools.
edit: here what I found anyway: Drive sort (french, and maybe not a portable app), Fat Sorter, yafs

I think we had a tool for 3DS. I'll post it here if I find it.
edit: https://www.maxconsole.com/threads/gateway-3ds-rom-sorter-beta.31452/
I don't know if it lists only .3ds files, or all files.

or you can wait for alphabetical sorting order added to goldleaf.

Yeah it's fine I'll just wait. I would consider using another tool, but it doesn't bother me enough to want to have to do it every time I create a new file. I just wanted to make sure that there wasn't a setting I was overlooking or something like that. I'm gonna check out those tools you posted though just because I didn't even know those existed. I have never ran across an issue like this before. Must be a *NIX thing.

Thanks for the response. B-)
 

FanboyKilla

Well-Known Member
Member
Joined
Mar 9, 2019
Messages
287
Trophies
0
XP
1,084
Country
United States
It's probably using the internal FAT32 creation order.
you could use tools to sort the FAT32, but you need to do it every time you add a new file.

I know FATSort, but it's for Linux.
there are tools for windows, but never tested them so I wouldn't want to recommend unknown/untested tools.
edit: here what I found anyway: Drive sort (french, and maybe not a portable app), Fat Sorter, yafs

I think we had a tool for 3DS. I'll post it here if I find it.
edit: https://www.maxconsole.com/threads/gateway-3ds-rom-sorter-beta.31452/
I don't know if it lists only .3ds files, or all files.

or you can wait for alphabetical sorting order added to goldleaf.

So when I originally read "but you need to do it every time you add a new file", I misinterpreted that as, every time I add a new file to the drive, then ALL of the files would go back to being out of order. But then the more I thought about it I was like that doesn't make sense, maybe he meant that I would have to do it every time I add a new file so that the "new file/folder" would now be in the correct order as well. So I decided to give DriveSort a try, and obviously I know now that you meant the latter. DriveSort worked great! I was able to sort my entire SD Card in alphabetical order and the whole process took less than 20 seconds to complete.

Thanks again for the info! B-)
 
  • Like
Reactions: Cyan

wurstpistole

GBAtemp MVP
Member
Joined
Nov 19, 2015
Messages
4,606
Trophies
1
XP
5,062
Country
United Kingdom
Just tried latest Goldleaf 0.5 nightly USB install in combination with Goldtree on FW 6.2, Atmos 0.8.5 - following Error - 0x234a02, Invalid NCA magic (missing sigpatches?) (firmware too low?)
Sigpatches are in place. Game definitely doesn't need 7.0. What else could be going wrong?
 
Last edited by wurstpistole,

lotsofusernames

New Member
Newbie
Joined
Mar 12, 2019
Messages
1
Trophies
0
Age
41
XP
58
Country
United States
Running 7.0.1 FW, 11.11.1 Kosmos CFW, prod.keys(from Lockpick), keys included with Kosmos + additional keys from link above, Goldleaf v0.5 nightly I'm able to install from SD, but I'm not able to install from USB.

I failed to install from USB + SD using Goldleaf/Goldtree v0.4 had no success due to either freezing or it just would give up transfer.

I was able to install via USB using Goldleaf.nro v0.3, and Goldtree v0.4, SD untested(As USB was my desired method, hopes this helps someone).


EDIT: After more USB installations I wanted to mention the following: Do not attempt to install multiple .nps files on the same boot, it's not working for me. I have to reboot each time, and I am also having the most success running Goldtree in Administrator.
 
Last edited by lotsofusernames,

AnthonyPetruzelli

Member
Newcomer
Joined
Oct 6, 2018
Messages
6
Trophies
0
Age
28
XP
61
Country
United States
@XorTroll, can you provide any insight about fixing my storage? I deleted a game via Goldleaf without thinking about it and I still have the same amount of space as before I deleted it, yet the game doesn't show up anywhere, using 6.0.0 ReinX.
 

LapCheong

Well-Known Member
Member
Joined
Mar 6, 2019
Messages
223
Trophies
0
XP
508
Country
Australia
Can i tell if the game or update I am installing needed the ignore firmware version option?
Or can I just ignore for every nsp I install?
 

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
433
Trophies
0
Age
29
Location
Australia
XP
917
Country
Australia
Is there gonna be a Goldleaf release so you can Install NSP's and delete the file at the same time just like on Tinfoil?
Also a Multi Install option is MUCH needed.
 

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
813
Trophies
0
Age
43
XP
1,220
Country
why Blawar's Tinfoil can install nsp's from SD/USB on 7.X and Goldleaf can only do it from USB?
Will XTroll fix this issue?
I do like SD method.
 
Last edited by toxic9,

Picalo

Well-Known Member
Newcomer
Joined
Feb 18, 2019
Messages
89
Trophies
0
Age
43
XP
263
Country
United States
Hello all, I would like to share as well to see if it helps and ask some questions.

Running 7.0.1 FW, 11.11.1 Kosmos CFW + additional sigpatches, sdcard exfat 256gb.
Not working for me USB install (pc+switch)
-Goldleaf .5 + Goldtree .4 = hangs on install 0/10
-Goldleaf .4 + Goldtree .4 = hangs most of the times 3/10

Working for me (pc+switch)
-Goldleaf .3 + Goldtree .3 = installs nsp 10/10
The only way to get 10/10 for me is to install nsp after it finishes press + to close goldleaf and then close goldtree and start the process again (for every installation).

Questions
1. I have my prod.keys(from Lockpick) where do I put the keys in goldleaf?
2. Will Goldleaf .5 work for me if I install kosmos additional sigpatch + fs_patches?
3. When should I ignore software when installing
----base game = yes/no
----DLC = yes/no
----update= yes/no
4. Why is it that .3 USB speeds transfer work faster than .4 (was unable to install anything with .5).
5. Goldleaf crashes if I hit the home button.
6. Any suggestions to make goldleaf .5 work better?

Thank you
 
Last edited by Picalo,

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
813
Trophies
0
Age
43
XP
1,220
Country
can you try this build and give me feedback? can you also try SD install, which is what I'm looking for if it's working o 7.01 please?
goldleaf-f74d9b7.zip
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
    K3N1 @ K3N1: Plug in*