mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-25 12:06:58 +01:00
Fix crash when selecting "Don't show this again" on the update warning
This commit is contained in:
parent
c33ef3d872
commit
a097915359
@ -396,7 +396,11 @@ void handleUpdateWarningScreen() {
|
|||||||
} else if (vpad.trigger & VPAD_BUTTON_B) {
|
} else if (vpad.trigger & VPAD_BUTTON_B) {
|
||||||
f = fopen(UPDATE_SKIP_PATH, "w");
|
f = fopen(UPDATE_SKIP_PATH, "w");
|
||||||
if (f) {
|
if (f) {
|
||||||
fputs("If this file exists, the Autoboot Module will not warn you about not blocking updates", f);
|
// It's **really** important to have this text on the stack.
|
||||||
|
// If it's read from the .rodata section the fwrite will softlock the console because the OSEffectiveToPhysical returns NULL for
|
||||||
|
// everything between 0x00800000 - 0x01000000 at this stage.
|
||||||
|
const char text[] = "If this file exists, the Autoboot Module will not warn you about not blocking updates";
|
||||||
|
fputs(text, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user