From 4b028d22b73145b5615c13628c312f812fcd034e Mon Sep 17 00:00:00 2001 From: Helloman892 Date: Sat, 2 Sep 2017 14:06:35 +0100 Subject: [PATCH] *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. --- source/main.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/source/main.c b/source/main.c index d8b6f96..f2946f1 100644 --- a/source/main.c +++ b/source/main.c @@ -86,11 +86,17 @@ int main(void) if (kDown & KEY_START) { - srvPublishToSubscriber(0x202, 0); - //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) {