*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.
This commit is contained in:
Helloman892
2017-09-02 14:06:35 +01:00
parent 73268de4d1
commit 4b028d22b7

View File

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