From 3b59b0bbfb60c3cc529cf8fbaf41237834b111c5 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 20 Aug 2020 19:52:50 +0200 Subject: [PATCH] Properly clear system saves on uninstall --- arm9/source/utils/gameutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arm9/source/utils/gameutil.c b/arm9/source/utils/gameutil.c index e184639..a728b31 100644 --- a/arm9/source/utils/gameutil.c +++ b/arm9/source/utils/gameutil.c @@ -1433,7 +1433,9 @@ u32 UninstallGameData(u64 tid64, bool remove_tie, bool remove_ticket, bool remov // clear leftovers if (GetInstallPath(path_data, drv, tid64, NULL, NULL) != 0) fvx_unlink(path_data); - // system save is *not* cleared in any case (!!!) + + // rmeove save (additional step required for system titles) + CreateSaveData(drv, tid64, NULL, 0, true); // remove titledb entry / ticket u32 ret = 0;