Start button functionality (#21)

* srvPublishToSubscriber

Pressing Start from the app now sends the user to the Power Off screen.

* *hax check

As per Sono, checks whether the current environment is *hax. If it isn't, it goes to the home screen; otherwise, it restarts the console.

* Bugfixes

This may work?

* Revert "Bugfixes"

This reverts commit 7c382d719ac9f50af17d117f177c8bede75941f1.
This commit is contained in:
Helloman892
2017-09-02 15:05:18 +01:00
committed by Alex Taber
parent aa593c61a6
commit 91f54ff22e

View File

@@ -86,10 +86,17 @@ int main(void)
if (kDown & KEY_START)
{
exit_screens();
exit_services();
PTMSYSM_RebootAsync(0);
ptmSysmExit();
if(!envIsHomebrew())
{
srvPublishToSubscriber(0x202, 0);
}
else
{
exit_screens();
exit_services();
PTMSYSM_RebootAsync(0);
ptmSysmExit();
}
}
else if (kDown & KEY_L)
{