Skip to content

Commit

Permalink
Reset default environment when launching from Tiramisu
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed May 6, 2024
1 parent c3b0652 commit 9be5f01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/UpdaterState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ ApplicationState::eSubState UpdaterState::update(Input *input) {
}
case STATE_UPDATE_SUCCESS: {
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);
return SUBSTATE_RESTART;
}
Expand Down

0 comments on commit 9be5f01

Please sign in to comment.