diff --git a/troposphere/daybreak/source/main.cpp b/troposphere/daybreak/source/main.cpp index ef95b363f..ba7656873 100644 --- a/troposphere/daybreak/source/main.cpp +++ b/troposphere/daybreak/source/main.cpp @@ -41,12 +41,18 @@ extern "C" { if (R_FAILED(rc = plInitialize(PlServiceType_User))) { fatalThrow(rc); } + + if (R_FAILED(rc = hiddbgInitialize())) { + fatalThrow(rc); + } + } void userAppExit(void) { - romfsExit(); + hiddbgExit(); plExit(); spsmExit(); + romfsExit(); amssuExit(); } diff --git a/troposphere/daybreak/source/ui.cpp b/troposphere/daybreak/source/ui.cpp index 4bae0d5f4..b47437740 100644 --- a/troposphere/daybreak/source/ui.cpp +++ b/troposphere/daybreak/source/ui.cpp @@ -783,6 +783,9 @@ namespace dbk { this->AddButton(RebootButtonId, "Reboot", x + HorizontalGap + ButtonWidth + ButtonHorizontalGap, y + WindowHeight - BottomGap - ButtonHeight, ButtonWidth, ButtonHeight); this->SetButtonEnabled(ShutdownButtonId, false); this->SetButtonEnabled(RebootButtonId, false); + + /* Prevent the home button from being pressed during installation. */ + hiddbgDeactivateHomeButton(); } void InstallUpdateMenu::MarkForReboot() {