Reset default environment when launching from Tiramisu

This commit is contained in:
Maschell 2024-05-06 14:49:11 +02:00
parent c3b06522b0
commit 9be5f01ca6

View File

@ -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;
} }