Make home button not work during installs, thanks @DarkMatterCore !

This commit is contained in:
Huntereb 2019-11-09 11:13:26 -05:00
parent cee9898a99
commit 1374370c78
2 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ namespace netInstStuff{
void installNspLan(std::vector<std::string> ourUrlList, int ourStorage) void installNspLan(std::vector<std::string> ourUrlList, int ourStorage)
{ {
inst::util::initInstallServices(); inst::util::initInstallServices();
appletLockExit(); if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletBeginBlockingHomeButton(0);
inst::ui::loadInstallScreen(); inst::ui::loadInstallScreen();
bool nspInstalled = true; bool nspInstalled = true;
FsStorageId m_destStorageId = FsStorageId_SdCard; FsStorageId m_destStorageId = FsStorageId_SdCard;
@ -162,7 +162,7 @@ namespace netInstStuff{
} }
printf("Done"); printf("Done");
appletUnlockExit(); if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletEndBlockingHomeButton();
inst::ui::loadMainMenu(); inst::ui::loadMainMenu();
inst::util::deinitInstallServices(); inst::util::deinitInstallServices();
return; return;

View file

@ -82,7 +82,7 @@ namespace nspInstStuff {
void installNspFromFile(std::vector<std::filesystem::path> ourNspList, int whereToInstall) void installNspFromFile(std::vector<std::filesystem::path> ourNspList, int whereToInstall)
{ {
inst::util::initInstallServices(); inst::util::initInstallServices();
appletLockExit(); if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletBeginBlockingHomeButton(0);
inst::ui::loadInstallScreen(); inst::ui::loadInstallScreen();
bool nspInstalled = true; bool nspInstalled = true;
FsStorageId m_destStorageId = FsStorageId_SdCard; FsStorageId m_destStorageId = FsStorageId_SdCard;
@ -156,7 +156,7 @@ namespace nspInstStuff {
} }
printf("Done"); printf("Done");
appletUnlockExit(); if (appletGetAppletType() == AppletType_Application || appletGetAppletType() == AppletType_SystemApplication) appletEndBlockingHomeButton();
inst::ui::loadMainMenu(); inst::ui::loadMainMenu();
inst::util::deinitInstallServices(); inst::util::deinitInstallServices();
return; return;