From aa593c61a6d45798e0bdcf345e82e6f57bdbd934 Mon Sep 17 00:00:00 2001 From: pokecraft98 Date: Sat, 2 Sep 2017 10:05:10 -0400 Subject: [PATCH 1/2] Added invite to theme plaza discord (#23) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c3d9c9..6356fab 100644 --- a/README.md +++ b/README.md @@ -25,5 +25,5 @@ Special thanks go to these people who, while not directly contributing, helped i * the maintainers for all used libraries, including ctrulib, zlib, citro3d, pp2d and minizip. * all the people who helped keep me going and motivated me to work. This includes, but is definitely not limited to: * The members of the [Nintendo Homebrew Discord](https://discord.gg/C29hYvh) - * The members of the Secret Shack Service Discord - * The members of the ThemePlaza Discord +   * The members of the Secret Shack Service Discord +   * The members of the [ThemePlaza Discord](https://discord.gg/2hUQwXz) From 91f54ff22e21ee880c7750376885257f3dc5025b Mon Sep 17 00:00:00 2001 From: Helloman892 Date: Sat, 2 Sep 2017 15:05:18 +0100 Subject: [PATCH 2/2] 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. --- source/main.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/source/main.c b/source/main.c index 0cae356..f2946f1 100644 --- a/source/main.c +++ b/source/main.c @@ -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) {