Nyx: Added feature to launch OFW directly from Launch Menu, a safeui option and konami code #1044
+174
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @CTCaer !
My C skills are a kind of rusty but here we go.
This is the context:
I've had to "improve" ;) a switch console from a friend's child and since he needs to keep sysNand to play online and emunand to be offline, I wanted to make him a nice lookable lauch menu that just power on it console, appears the 2 options, One for Emmunand and one for SysNand. But I wanted that the SysNand option launches OFW instead of stock. You know, I think its better to launch OFW than using SysNand stock option, less problems I think. So, since OFW is only at Home Menu and I don't wanted that him can touch something that does not know, I decided to look for if it was possible to use the homescreen=2 option on nyx.ini and then add a launch entry fro OFW. So I've seen this issue #665 and I've wondered: Why not implement shuch functionality?
@antonwe in that Issue was right.
So that's what I did. I've think that for those people that does not understand tech or are unware of what a bootloader is, I think this can be a great feature. It's like kid friendly if you want. So I've also added a safeui option that avoids the creation of top right corners buttons on launch screen. That way a simple user just focus on what want to boot, nothing else.
Also, I've added a konami code that resets the Nyx menu back to normal, just in case come person like an "admin", has the ability to access full content of hekate again and then can update it without problems. Imagine I'm the admin of my friend's child. When he needs some kind of help related with boot or needs update hekate, then I can introduce the konami code, do my stuff and put back again the "kid mode".
Sorry for my bad english. I hope the concept it is understood.
I know the code is not perfect. Just a proof of concept that is working. Just tell me what do you think and how can be adapted to the soruce code and if you are interest it (hope you are 😄 )
BTW, I've added the joycons BUTONS MASK, you know, for konami code are very handy.