From 1374370c78044ed8078b5530ed4fa77c22e056fb Mon Sep 17 00:00:00 2001 From: Huntereb Date: Sat, 9 Nov 2019 11:13:26 -0500 Subject: [PATCH] Make home button not work during installs, thanks @DarkMatterCore ! --- source/netInstall.cpp | 4 ++-- source/nspInstall.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/netInstall.cpp b/source/netInstall.cpp index 9c246f2..fb9d4b5 100755 --- a/source/netInstall.cpp +++ b/source/netInstall.cpp @@ -115,7 +115,7 @@ namespace netInstStuff{ void installNspLan(std::vector ourUrlList, int ourStorage) { inst::util::initInstallServices(); - appletLockExit(); + if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletBeginBlockingHomeButton(0); inst::ui::loadInstallScreen(); bool nspInstalled = true; FsStorageId m_destStorageId = FsStorageId_SdCard; @@ -162,7 +162,7 @@ namespace netInstStuff{ } printf("Done"); - appletUnlockExit(); + if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletEndBlockingHomeButton(); inst::ui::loadMainMenu(); inst::util::deinitInstallServices(); return; diff --git a/source/nspInstall.cpp b/source/nspInstall.cpp index 49fcd57..52fb797 100755 --- a/source/nspInstall.cpp +++ b/source/nspInstall.cpp @@ -82,7 +82,7 @@ namespace nspInstStuff { void installNspFromFile(std::vector ourNspList, int whereToInstall) { inst::util::initInstallServices(); - appletLockExit(); + if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletBeginBlockingHomeButton(0); inst::ui::loadInstallScreen(); bool nspInstalled = true; FsStorageId m_destStorageId = FsStorageId_SdCard; @@ -156,7 +156,7 @@ namespace nspInstStuff { } printf("Done"); - appletUnlockExit(); + if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletEndBlockingHomeButton(); inst::ui::loadMainMenu(); inst::util::deinitInstallServices(); return;