From 31fd7f88e9dbec9be69c5d80b3b9ea80c7024955 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Sun, 26 Aug 2018 23:06:54 +0200 Subject: [PATCH] Fix a small issue with relocking write permissions --- arm9/source/godmode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index 825a0db..d71ab4e 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -2364,6 +2364,7 @@ u32 GodMode(int entrypoint) { GetDirContents(current_dir, current_path); } else if (switched && (pad_state & BUTTON_Y)) { SetWritePermissions(PERM_BASE, false); + last_write_perm = GetWritePermissions(); ClearScreenF(false, true, COLOR_STD_BG); } } else if (!switched) { // standard unswitched command set