Goldleaf - A Nintendo Switch multipurpose homebrew tool

Goldleaf

Goldleaf is a multipurpose homebrew tool for Nintendo Switch!

Goldleaf.1.jpg


Similar to the well-known 3DS homebrew FBI, Goldleaf serves as a file browser/manager/editor, title manager, user account manager... and more!



Let Goldleaf make your life easier while dealing with more or less technical Nintendo Switch stuff!
 
Last edited by XorTroll, , Reason: 0.6 README changes

KTroopA

Well-Known Member
Member
Joined
Mar 15, 2007
Messages
591
Trophies
0
XP
940
Country
Guys, I'm so glad to announce that v0.4 has been released!

Changelog:

  • Atmosphère v0.8.3's new feature, payload rebooting from the console itself, is also supported by Goldleaf! Binary *.bin files will have an option to be launched as payloads if Atmosphère is detected running.

  • The old title manager has been refactored. Now, it can show ANY kind of content located in any partition, from system data archives to DLCs and updates, and regular titles. All of them can be removed individually.

  • Goldleaf has the ability to detect the CFW currently running, which gets displayed on the CFW menu.

  • Now the web browser is accessible even if Goldleaf isn't an installed title. It will use the WifiLogin web-applet, which has some limitations, but at least it's something.

  • Content mounting (like NAND when being browsed or the NSPs when being installed) has been refactored to minimize any filesystem issues.

  • Some icons were changed: NROs have a new icon, NCAs have now the old NROs icon...

  • NSP exporting now warns with titles which are 4GB or higher, for risk preventing.

  • USB has been quite improved with experimental threads' syncing, which seems to make it more stable.

  • Regular installs check for free size now.

  • Tickets show if they're used or not, so unused ones should be safe to remove.

  • Both USB and regular installations abort if the title is already installed.

  • Minor fixes and corrections on texts and several options.
(just saying, now the installable version has also those support information docs you can access from HOME menu)


Under manage installed titles the names of the installed NSPs do not show now, instead it shows TitleID or something. Was better before with the game name and descriptions - is this a bug in 0.4?
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
Welp guys, I have a surprise for all of you: Goldleaf as qlaunch coming soon!
when you exit the launched game, does it return to goldleaf or launches the real menu? you didn't add that part in the video.
can you manually launch the menu? (to access other menus, settings/applet,etc.)
 

XorTroll

Switching between my 2DS and my Switch
OP
Developer
Joined
Dec 28, 2017
Messages
642
Trophies
1
Location
Nowhere
Website
github.com
XP
4,228
Country
Spain
Under manage installed titles the names of the installed NSPs do not show now, instead it shows TitleID or something. Was better before with the game name and descriptions - is this a bug in 0.4?
The title manager had been refactored but it misses some stuff. v0.5 will have some stuff which still has to be added
 
  • Like
Reactions: KTroopA

XorTroll

Switching between my 2DS and my Switch
OP
Developer
Joined
Dec 28, 2017
Messages
642
Trophies
1
Location
Nowhere
Website
github.com
XP
4,228
Country
Spain
when you exit the launched game, does it return to goldleaf or launches the real menu? you didn't add that part in the video.
can you manually launch the menu? (to access other menus, settings/applet,etc.)
I only showed that because it only has that feature for the moment, the idea of making Goldleaf qlaunch would take its time
 
  • Like
Reactions: Cyan

dc9884

Active Member
Newcomer
Joined
Jul 9, 2018
Messages
42
Trophies
0
Age
35
XP
586
Country
United States
Thanks so much for this tool!

I have two switches, one that's totally clean with my eShop purchases and one for Homebrew. Am I understanding the NSP dumping functionality correctly that I could dump the purchased games from my clean Switch to install on my Homebrew Switch? (Naturally I would do a backup and restore to avoid a ban). Are there any keys or other restrictions that would prevent that, beyond if the game required a higher firmware than my Homebrew Switch currently has installed?
 

coldstream

Member
Newcomer
Joined
Mar 31, 2015
Messages
23
Trophies
0
Age
36
XP
99
Country
Netherlands
What a complete waste of effort this tool is. I've been rocking the old usb-fixed tinfoil for ages because it just works, but last days i've been catching up with the development from lately, and aperently getting stable usb has no priority yet shiny features that adds nothing gets effort. While it might sound awfull, i do apreciate all effort thats been putted in this tool, don't get me wrong but the same damn usb issues that have been around for as long as i'm aware of are still going around and around and i don't see any reason to switch over to the current version. Additional features are not bad, but it's supposed to be a title installer. May i suggest focussing on installing titles properly first? I have no idea where stuff have been installed to, but i have gotten like 4 different errors and strange situations whete the old tinfoil just works fine. Right now i'm getting meta errors, while previously the nsp started installing but crashed randomly. Not to mention that v4 is behaving way different versus v3. Now it all wouldn't matter so much, but aperently some stuff are still left over from the crash yet i can't find it anywhere. Reminds me of the 3ds and the gamble game of which title was bad.. we have to deal with fat32, so we have to deal with either usb or network install. So far, i haven't been able to get anywhere with goldleaf, i know all too well how libusbk might act up in the process but i'm sure it's not for me right now as otherwise the old tinfoil wouldn't work either. I havent booted to my linux distro, but it's a shame that so much work has been put in yet some way older release outshines it by simple functionality.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,858
Trophies
2
XP
28,902
Country
United Kingdom
Yep I tried usb install on the new version, it failed once before starting, next attempt failed partway through install so I had to clean up after it, seemed about the same as previous versions. Back to OG tinfoil and aluminumfoil.
 

regnad

Button Masher
Member
Joined
May 19, 2008
Messages
2,515
Trophies
1
Age
53
XP
3,674
Country
Japan
FWIW Goldleaf/Goldtree failed the first try to install Observer, which is a whopping 14gb, and then succeeded on the second try.

Don't give up on this app yet!
 
Last edited by regnad,
  • Like
Reactions: DarkDengar

Don Jon

Well-Known Member
Member
Joined
Nov 20, 2015
Messages
1,057
Trophies
0
Age
38
XP
1,496
Country
United States
What a complete waste of effort this tool is. I've been rocking the old usb-fixed tinfoil for ages because it just works, but last days i've been catching up with the development from lately, and aperently getting stable usb has no priority yet shiny features that adds nothing gets effort. While it might sound awfull, i do apreciate all effort thats been putted in this tool, don't get me wrong but the same damn usb issues that have been around for as long as i'm aware of are still going around and around and i don't see any reason to switch over to the current version. Additional features are not bad, but it's supposed to be a title installer. May i suggest focussing on installing titles properly first? I have no idea where stuff have been installed to, but i have gotten like 4 different errors and strange situations whete the old tinfoil just works fine. Right now i'm getting meta errors, while previously the nsp started installing but crashed randomly. Not to mention that v4 is behaving way different versus v3. Now it all wouldn't matter so much, but aperently some stuff are still left over from the crash yet i can't find it anywhere. Reminds me of the 3ds and the gamble game of which title was bad.. we have to deal with fat32, so we have to deal with either usb or network install. So far, i haven't been able to get anywhere with goldleaf, i know all too well how libusbk might act up in the process but i'm sure it's not for me right now as otherwise the old tinfoil wouldn't work either. I havent booted to my linux distro, but it's a shame that so much work has been put in yet some way older release outshines it by simple functionality.
Some cool features are being worked at like downloading nsp files from web(cough googledrive)and installing using the web browser
 

coldstream

Member
Newcomer
Joined
Mar 31, 2015
Messages
23
Trophies
0
Age
36
XP
99
Country
Netherlands
Some cool features are being worked at like downloading nsp files from web(cough googledrive)and installing using the web browser
Fair enough, and after reading back my message of last night i should clarify that i perhaps sound moody or ungrateful for the effort putting in. This was absolutely not my intention, just to clear that up.
All the new features sound good, but what i tried to say with my post is that before there are more and more features, the most important feature is still in the same state as versions ago. New features are good, but the priority has shifted from it's core purpose to it's added features meanwhile the original problems remain there and doesn't get worked on. That doesn't mean i don't apriciate the effort at all, i just wanted to point out that indeed the old tinfoil is doing the installing much better. Maybe i'm getting it wrong but i'd rather have current features properly done before new ones gets added. Beside, i doubt the wifi on the nsw is fast enough to switch to network installation as primary option.
 
  • Like
Reactions: Unp

RitchieRitchie

Well-Known Member
Member
Joined
Nov 15, 2013
Messages
787
Trophies
0
Age
50
XP
772
Country
Hi, first off, thanks for putting all the effort into this app! I just used it for the first time today so don't know if this is a regular problem but I installed an update (with ignore fw) and at the end a message appeared - error occurred, switch off console etc etc. However, when I re booted the update seems to have been installed okay - the game boots fine (so far). Does this often happen? Cheers!
 

fenrif

New Member
Newbie
Joined
Feb 22, 2015
Messages
2
Trophies
0
Age
38
XP
42
Country
Hello, I was wondering if someone could give me a bit of advice. I seem to be in a bit of a situation.

I've installed the NSP and connected to my PC, installed a couple of NSPs fine with no issue. Then on the last NSP it got stuck on a screen saying something about updating titles, I forget the specific message. Also the bottom of the screen on the switch was saying "installation complete." The PC application was unresponsive. Home button wouldn't quit out, and I had no other way of exiting the NSP on the switch.

I waited about 15 minutes with no change. So I tried closing down the PC application. The Switch still was stuck on the same screen. I've now powered down the switch, and it's completely unresponsive.

How badly have I fucked up here? Is the switch salvageable? Any help greatly appreciated.
 

Adran_Marit

Walküre's Hacker
Member
Joined
Oct 3, 2015
Messages
3,781
Trophies
1
Location
42*South
XP
4,548
Country
Australia
Hello, I was wondering if someone could give me a bit of advice. I seem to be in a bit of a situation.

I've installed the NSP and connected to my PC, installed a couple of NSPs fine with no issue. Then on the last NSP it got stuck on a screen saying something about updating titles, I forget the specific message. Also the bottom of the screen on the switch was saying "installation complete." The PC application was unresponsive. Home button wouldn't quit out, and I had no other way of exiting the NSP on the switch.

I waited about 15 minutes with no change. So I tried closing down the PC application. The Switch still was stuck on the same screen. I've now powered down the switch, and it's completely unresponsive.

How badly have I fucked up here? Is the switch salvageable? Any help greatly appreciated.

press and hold power button for 15 seconds while plugged into pc, check for rcm
 
  • Like
Reactions: fenrif

nabelo

Active Member
Newcomer
Joined
Mar 14, 2009
Messages
28
Trophies
1
XP
449
Country
Germany
If you launch the hbmenu via title takeover to use All available RAM and Lauch then goldleaf, you cant exit goldleaf via the Plus Button.
 

fenrif

New Member
Newbie
Joined
Feb 22, 2015
Messages
2
Trophies
0
Age
38
XP
42
Country
press and hold power button for 15 seconds while plugged into pc, check for rcm

Oh nice one, that has it booted back up. You're a life saver.

Is there anything I need to do to clean up the mess of the botched install? Also any advice on what to do if this happens in the future?
 

Adran_Marit

Walküre's Hacker
Member
Joined
Oct 3, 2015
Messages
3,781
Trophies
1
Location
42*South
XP
4,548
Country
Australia
Oh nice one, that has it booted back up. You're a life saver.

Is there anything I need to do to clean up the mess of the botched install? Also any advice on what to do if this happens in the future?
system, remove the corrupt install, try again?

I ended up reverting to tinfoil +aluminium foil usb install yesterday for that reason
 

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
683
Trophies
1
XP
2,461
Country
Russia
Thread sync implemented completely wrong: you need to implement atomic buffer switching.

Right now you have three(!!!) working threads. One reads from USB into membuffer, other - writes from membuffer into placeholder on FS. Third - just constantly redraws GUI and checks if first two completed.
You are using the same mutex for both tasks (reading and writing), so your threads can either read from USB or write to FS. In this approach it will be better to do these tasks in the same one main GUI thread (and refresh GUI only after some portion of data written to placeholder).

If you wanna keep your multiple threads approach you need to have several membuffers (2 is enough, more is useless - if speeds of reading and writing are differ than any number of buffers will end soon).
Reading thread reads from USB into first membuffer, than waits until other will be written to FS and start to read into it.
Writing thread do the same.

The only thing that you need to protect via mutexes are functions that checks if buffer is ready and swapping buffers.
 
  • Like
Reactions: hippy dave

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,858
Trophies
2
XP
28,902
Country
United Kingdom
Thread sync implemented completely wrong: you need to implement atomic buffer switching.

Right now you have three(!!!) working threads. One reads from USB into membuffer, other - writes from membuffer into placeholder on FS. Third - just constantly redraws GUI and checks if first two completed.
You are using the same mutex for both tasks (reading and writing), so your threads can either read from USB or write to FS. In this approach it will be better to do these tasks in the same one main GUI thread (and refresh GUI only after some portion of data written to placeholder).

If you wanna keep your multiple threads approach you need to have several membuffers (2 is enough, more is useless - if speeds of reading and writing are differ than any number of buffers will end soon).
Reading thread reads from USB into first membuffer, than waits until other will be written to FS and start to read into it.
Writing thread do the same.

The only thing that you need to protect via mutexes are functions that checks if buffer is ready and swapping buffers.
PLEASE do a pull request. We need you.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Sup