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,650
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,257
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,257
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,884
Trophies
2
XP
29,294
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,684
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,557
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,557
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
691
Trophies
1
XP
2,479
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,884
Trophies
2
XP
29,294
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
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
    TwoSpikedHands @ TwoSpikedHands: @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the...