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

designgears

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
289
Trophies
0
XP
640
Country
United States
Cannot seem to have any luck with this anymore.. used to work pretty nice.

On 0.5 release, I always get the error that the title is already installed. Someone mentioned "Replace NCA" option, but I don't see anything like that anywhere, and no google search gives any results... what is this?

If I try latest nightly build as of now, I get error "Metadata could not be located in the NCA(3)"...

Anyone know what's going on?

EDIT: Forgot to say some details.

Switch is 7.0.1 using ReiNX.

Replace (reinstall?) NCA is a tinfoil option, someone was confused. Lastest nightly is broken. I'd roll back to 6.2, 7.0.1 will cause you problems and there is no need to be on it.
 
Last edited by designgears,

LapCheong

Well-Known Member
Member
Joined
Mar 6, 2019
Messages
223
Trophies
0
XP
498
Country
Australia
Cannot seem to have any luck with this anymore.. used to work pretty nice.

On 0.5 release, I always get the error that the title is already installed. Someone mentioned "Replace NCA" option, but I don't see anything like that anywhere, and no google search gives any results... what is this?

If I try latest nightly build as of now, I get error "Metadata could not be located in the NCA(3)"...

Anyone know what's going on?

EDIT: Forgot to say some details.

Switch is 7.0.1 using ReiNX.

Delete the game from the switch software setting and remove the tickets from goldleaf then try again
 

LapCheong

Well-Known Member
Member
Joined
Mar 6, 2019
Messages
223
Trophies
0
XP
498
Country
Australia
Seems like an unfortunate solution, as it happened over several games... Does this mean I should uninstall all and re-install each base + update?
Yea you can try that on affected games
I only had this happen to me once, maybe you can try other GUI like NS-USBloader?
 

Alir3za

New Member
Newbie
Joined
Apr 10, 2019
Messages
2
Trophies
0
Age
25
XP
32
Country
United Kingdom
Hi guys
I have updated my switch to version 7, and ever since when I lunch goldleaf, it crashes when I press the home button on the controller.
can anyone help me?
I use goldleaf v0.5 and the latest atmosphere release
 

JBMario

Well-Known Member
Newcomer
Joined
Jan 17, 2019
Messages
76
Trophies
0
Age
32
XP
667
Country
France
Hi guys
I have updated my switch to version 7, and ever since when I lunch goldleaf, it crashes when I press the home button on the controller.
can anyone help me?
I use goldleaf v0.5 and the latest atmosphere release
Press the + button to quit Goldleaf and other homebrews.
 
  • Like
Reactions: Alir3za

lettuce

Well-Known Member
Member
Joined
Jul 27, 2006
Messages
811
Trophies
0
XP
471
Country
SO i have tried installing a few games via USB but i always seem to get an error message.....

Error: 0x234a02
Module: FS (2)
Description: Invalid NCA (might mean missing sigpatches or a too low firmware) (4517)

I have the latest 0.5 of goldleaf installed and am on FW 7.0.1 on the Switch, the games install fine if i try and install them from the SD card so its not the nsp file thats the issue!.

Any ideas what the issue can be?
 

ShadowOne333

QVID PRO QVO
Developer
Joined
Jan 17, 2013
Messages
10,896
Trophies
1
XP
13,256
Country
Mexico
I'm using the latest Goldleaf nightly on my just-hacked Switch.
I tired installing any NSP from my SD card, but right when I select "Yes" on the "ignore firmware" propmt, the Switch freezes for a while and then simply errors out with an Atmosphere error.

Did I miss something?
 

hallo23

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
144
Trophies
0
XP
1,400
Country
Germany
So I removed 3 titles with Goldleaf today that were installed on my sdcard.
The titles are gone from the main menu but it didn't make any room on my sdcard.
How can I track them down on my sdcard to delete them?
 

Cheshy

Member
Newcomer
Joined
Apr 14, 2019
Messages
20
Trophies
0
Age
31
XP
147
Country
Australia
So when I install games with Goldleaf, they always seem to end up corrupt and not working. I'm not quite sure what I'm doing wrong, any ideas?
 

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
598
Trophies
0
Age
31
XP
1,147
Country
United States
I was able to install the base Cuphead game using OG Tinfoil but the update failed to install. The update installed just fine on Goldleaf though. SX OS 2.6.2, OFW 7.0.1.
 

JJTapia19

I fight for my friends.
Member
Joined
May 31, 2015
Messages
2,170
Trophies
1
Age
30
XP
2,380
Country
Puerto Rico
Guys usb installing is not working for me anymore. I don't know what else to try. Everything was working just days ago so the drivers are fine. I already tried reinstalling the driver with zadig, restarting the pc and switch, using goldtree and nsusbinstaller, trying different usb ports. The pc is showing the switch connected in device manager. I tried lithium and nut server and it worked but not goldleaf. Please help. The only reaction I get from goldtree is when I disconnect the cable from the switch and goldtree says an invalid command was recieved. I'm on ns v.7.0.1 gl v5.0

Edit: Just tried OG Tinfoil 0.2.1 with ns-usbloader and it worked first try so the problem is with goldleaf specifically :unsure:

Edit 2: Just tried the nsp instead of the nro version and it's working so the problem is specifically with the nro somehow. I tried redownloading the nro but still. I'll keep using the nsp version for now but as soon as I press the home button I always get a fatal error. That's why I wanted to use the nro version and exit via +.
 
Last edited by JJTapia19,

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
930
Trophies
0
XP
1,647
Country
Australia
I was able to install the base Cuphead game using OG Tinfoil but the update failed to install. The update installed just fine on Goldleaf though. SX OS 2.6.2, OFW 7.0.1.

seems to be a twofold issue from chatter on discord:

apparently some of hbg's updates are showing as having modified nca files because they removed deltas

and

goldleaf works with the broken update because goldleaf ignores the cert and uses it’s own, which is actually kind of bad


I dont have Cuphead or the update to test.. so can anyone verify either / both of the above comments?
 
  • Like
Reactions: stick267

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
598
Trophies
0
Age
31
XP
1,147
Country
United States
seems to be a twofold issue from chatter on discord:

apparently some of hbg's updates are showing as having modified nca files because they removed deltas

and

goldleaf works with the broken update because goldleaf ignores the cert and uses it’s own, which is actually kind of bad


I dont have Cuphead or the update to test.. so can anyone verify either / both of the above comments?
The same issue also happened with the Smash 3.0 update. If it also came from HBG then maybe this is the issue. I didn't get the NSPs directly from HBG so I'm not sure where they originated.
 

Picartman

Well-Known Member
Newcomer
Joined
Sep 29, 2016
Messages
61
Trophies
0
Age
30
XP
152
Country
United States
Goldleaf does install NSPs from SD, yes. Don't know that there is much reason to upgrade unless you are on FW 7.x though.

Hey I just saw this, so I'm actually thinking about upgrading from 6.2 to 7.0.1 using Choi just to stay up to date with everything. I'm assuming the safe bet is to move to Goldleaf if I'm on 7.0.1 since GL is still being updated and I assume Dopus is a dead project, right?
 
General chit-chat
Help Users
    KenniesNewName @ KenniesNewName: https://www.pcgamer.com/youtuber-tries-to-sell-his-112m-subs-channel-following-abuse-allegations/