From a0979153598682fae636250d073db25fead5244b Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 14 Jan 2023 14:10:59 +0100 Subject: [PATCH] Fix crash when selecting "Don't show this again" on the update warning --- source/MenuUtils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/MenuUtils.cpp b/source/MenuUtils.cpp index ee87ab8..547b601 100644 --- a/source/MenuUtils.cpp +++ b/source/MenuUtils.cpp @@ -396,7 +396,11 @@ void handleUpdateWarningScreen() { } else if (vpad.trigger & VPAD_BUTTON_B) { f = fopen(UPDATE_SKIP_PATH, "w"); 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); } break;