FlashScreen: Move home button disable to update state

This commit is contained in:
GaryOderNichts 2024-04-14 18:49:49 +02:00
parent d4eafc1298
commit f2ca8f4b00
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ No one but yourself is responsible for any sort of damage resulting from using t
For building you need:
- [wut](https://github.com/devkitPro/wut)
- [libmocha](https://github.com/wiiu-env/libmocha)
- [wiiu-sdl2](https://github.com/GaryOderNichts/SDL/tree/wiiu-sdl2-2.26)
- wiiu-sdl2
- wiiu-sdl2_ttf
To build the project run `make`.

View File

@ -314,8 +314,6 @@ bool FlashScreen::Update(VPADStatus& input)
break;
}
case STATE_PREPARE: {
ProcUI::SetHomeButtonMenuEnabled(false);
std::string originalFirmwarePath;
if (!GetDRCFirmwarePath(originalFirmwarePath)) {
mErrorString = "Failed to get original DRC firmware path";
@ -374,6 +372,8 @@ bool FlashScreen::Update(VPADStatus& input)
break;
}
case STATE_UPDATE: {
ProcUI::SetHomeButtonMenuEnabled(false);
if (!CaffeineInvalidate()) {
mErrorString = "Failed to invalidate caffeine.";
mState = STATE_ERROR;