From 04a33143b71f7bd11f96aeb463f4a4694cbec9b6 Mon Sep 17 00:00:00 2001 From: Aurora Date: Tue, 22 Nov 2016 23:26:04 +0100 Subject: [PATCH] Added warning if deletion fails --- source/installer.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/installer.c b/source/installer.c index 5b0e50d..18ad708 100755 --- a/source/installer.c +++ b/source/installer.c @@ -272,10 +272,15 @@ static inline void installer(bool isOtpless) else { *(vu32 *)0x80FD0FC = 0; - sdmmc_sdcard_init(true, false); - mountFs(true); - fileDelete("arm9loaderhax.bin"); + drawTitle(); + + if(sdmmc_sdcard_init(true, false) && mountFs(true)) fileDelete("arm9loaderhax.bin"); + else + { + posY = drawString("Couldn't remove arm9loaderhax.bin!", 10, posY + SPACING_Y, COLOR_RED); + posY = drawString("Do it yourself after the install ends", 10, posY, COLOR_RED); + } } if(!ISA9LH && ISN3DS && !ISDEVUNIT)