Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nyx: Added feature to launch OFW directly from Launch Menu, a safeui option and konami code #1044

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

didix16
Copy link

@didix16 didix16 commented Nov 24, 2024

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.

I'd like to revisit this, with modchips in mind. On my switch with a modchip installed, I'd love to immediately be presented with the launch screen with OFW boot as one of the options. I can certainly bypass the modchip by holding volume buttons during power-on or press reboot->ofw in Hekate, but when I hand the switch over to someone who doesn't fully understand how things work, having OFW as a big nice launch button would be far more obvious.

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.

@antonwe
Copy link

antonwe commented Nov 28, 2024

this is exactly what I wanted, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants