mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-22 04:24:48 +00: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
2 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue