mirror of
https://github.com/wiiu-env/AromaUpdater.git
synced 2024-12-25 12:31:55 +01:00
Reset default environment when launching from Tiramisu
This commit is contained in:
parent
c3b06522b0
commit
9be5f01ca6
@ -156,6 +156,10 @@ ApplicationState::eSubState UpdaterState::update(Input *input) {
|
|||||||
}
|
}
|
||||||
case STATE_UPDATE_SUCCESS: {
|
case STATE_UPDATE_SUCCESS: {
|
||||||
if (buttonPressed(input, Input::BUTTON_A)) {
|
if (buttonPressed(input, Input::BUTTON_A)) {
|
||||||
|
if (gDeleteDefaultEnvironmentOnSuccess) {
|
||||||
|
// Delete default environment when installing from Tiramisu
|
||||||
|
remove("fs:/vol/external01/wiiu/environments/default.cfg");
|
||||||
|
}
|
||||||
OSLaunchTitlel(0xffffffff, 0xfffffffe, 0, nullptr);
|
OSLaunchTitlel(0xffffffff, 0xfffffffe, 0, nullptr);
|
||||||
return SUBSTATE_RESTART;
|
return SUBSTATE_RESTART;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user