tallbl0nde / NX-Activity-Log

Homebrew application for the Nintendo Switch which displays play activity with more accuracy
MIT License
418 stars 27 forks source link

Ability to override launch from profile screen #20

Open ioistired opened 4 years ago

ioistired commented 4 years ago

It would be nice to be able to hold down R while launching the profile to launch the stock system activity log. Perhaps it could later be configurable, so that the launch is only overridden when a certain configurable button is pressed, like Atmosphere itself.

tallbl0nde commented 4 years ago

I'd have to look into it, but I'm fairly sure this would have to be done within the CFW. The "replacing" side of things is done using a modified nx-hbloader, which the original relies on Atmosphere for the button combination thing.

ioistired commented 4 years ago

Maybe it's possible to check for the button combination after launch then?

tallbl0nde commented 4 years ago

Maybe? But I'm not sure if you could then get the loader to launch the normal User Page instead... I guess I'll look into it at some point

tallbl0nde commented 4 years ago

I've tried messing around with this concept and while you can prevent my app from launching when a button is held, I can't actually launch the stock User Page with the required command as LayeredFS replaces it with my app which gets into a loop until it crashes :/

One way to get around this would be to rename the exefs file (I think) so LayeredFS essentially ignores it, but then I wouldn't be able to rename it correctly upon exiting the stock User Page. Thus I think this would have to be a feature implemented in CFW, but I don't know for sure.

ioistired commented 4 years ago

What facilities would have to be implemented in CFW to make this possible?

tallbl0nde commented 4 years ago

This is just a guess but I'd imagine either temporarily disabling LayeredFS (without the need to rename/delete folders, so maybe through some call?) or ignoring LayeredFS when a button is pressed on the launch of an applet/app.

Again, this is just a guess so it may not be a CFW thing, however I don't believe avoiding the override can be done without disabling LayeredFS in some way.

ghost commented 3 years ago

This is already a thing: hold L on launch. It just doesn't work with applets (unless I'm doing something wrong), so it's not possible to use it to load default profile page. So I'd report this against Atmosphere, and hopefully there's nothing that actually prevents this from being made to work with applets.