mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-20 07:22:21 +02:00
daybreak: switch to using hiddbg for home blocking (+1 squashed commits)
Squashed commits: [4bfc7b0d] daybreak: block the home button during installation
This commit is contained in:
parent
4464b31b40
commit
0f39bc4b26
@ -41,12 +41,18 @@ extern "C" {
|
|||||||
if (R_FAILED(rc = plInitialize(PlServiceType_User))) {
|
if (R_FAILED(rc = plInitialize(PlServiceType_User))) {
|
||||||
fatalThrow(rc);
|
fatalThrow(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (R_FAILED(rc = hiddbgInitialize())) {
|
||||||
|
fatalThrow(rc);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void userAppExit(void) {
|
void userAppExit(void) {
|
||||||
romfsExit();
|
hiddbgExit();
|
||||||
plExit();
|
plExit();
|
||||||
spsmExit();
|
spsmExit();
|
||||||
|
romfsExit();
|
||||||
amssuExit();
|
amssuExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -783,6 +783,9 @@ namespace dbk {
|
|||||||
this->AddButton(RebootButtonId, "Reboot", x + HorizontalGap + ButtonWidth + ButtonHorizontalGap, y + WindowHeight - BottomGap - ButtonHeight, ButtonWidth, ButtonHeight);
|
this->AddButton(RebootButtonId, "Reboot", x + HorizontalGap + ButtonWidth + ButtonHorizontalGap, y + WindowHeight - BottomGap - ButtonHeight, ButtonWidth, ButtonHeight);
|
||||||
this->SetButtonEnabled(ShutdownButtonId, false);
|
this->SetButtonEnabled(ShutdownButtonId, false);
|
||||||
this->SetButtonEnabled(RebootButtonId, false);
|
this->SetButtonEnabled(RebootButtonId, false);
|
||||||
|
|
||||||
|
/* Prevent the home button from being pressed during installation. */
|
||||||
|
hiddbgDeactivateHomeButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstallUpdateMenu::MarkForReboot() {
|
void InstallUpdateMenu::MarkForReboot() {
|
||||||
|
Loading…
Reference in New Issue
Block a user