From 445d22db97cc308f0e6075b0e878bb620394da6b Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 14 Nov 2016 17:42:39 +0100 Subject: [PATCH] Extend 10.4 FIRM loading to 11.2 NANDs --- source/fs.c | 2 +- source/installer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/fs.c b/source/fs.c index 61f5be2..32db697 100644 --- a/source/fs.c +++ b/source/fs.c @@ -119,7 +119,7 @@ u32 firmRead(void *dest) u32 tempVersion = hexAtoi(info.altname, 8); //FIRM is equal or newer than 11.0 - if(!ISDEVUNIT && tempVersion >= (ISN3DS ? 0x21 : 0x52)) ret = tempVersion <= (ISN3DS ? 0x26 : 0x56) ? 5 : 2; + if(!ISDEVUNIT && tempVersion >= (ISN3DS ? 0x21 : 0x52)) ret = tempVersion <= (ISN3DS ? 0x28 : 0x58) ? 5 : 2; //Found an older cxi if(tempVersion < firmVersion) firmVersion = tempVersion; diff --git a/source/installer.c b/source/installer.c index 8e5e82c..cb300b4 100755 --- a/source/installer.c +++ b/source/installer.c @@ -332,7 +332,7 @@ static inline void uninstaller(void) shutdown(1, "Error: more than one FIRM has been detected"); break; case 5: - posY = drawString("FIRM 11.0 or 11.1 has been detected!", 10, posY + SPACING_Y, COLOR_RED); + posY = drawString("FIRM 11.0/11.1/11.2 has been detected!", 10, posY + SPACING_Y, COLOR_RED); posY = drawString("Press SELECT to load 10.4 FIRM from SD", 10, posY + SPACING_Y, COLOR_WHITE); posY = drawString("Press any other button to load FIRM from CTRNAND", 10, posY, COLOR_RED); @@ -354,7 +354,7 @@ static inline void uninstaller(void) break; } case 2: - if(result == 2) posY = drawString("A FIRM newer than 11.1 has been detected!", 10, posY + SPACING_Y, COLOR_RED); + if(result == 2) posY = drawString("A FIRM newer than 11.2 has been detected!", 10, posY + SPACING_Y, COLOR_RED); posY = drawString("You are about to uninstall A9LH!", 10, posY + SPACING_Y, COLOR_RED); posY = drawString("To reinstall you'll need an hardmod or a DSi dg!", 10, posY, COLOR_RED); break;