diff --git a/injector/source/patcher.c b/injector/source/patcher.c index 1039747..c5c2627 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -98,7 +98,7 @@ static void loadCFWInfo(void) { svcGetCFWInfo(&info); IFile file; - if(R_SUCCEEDED(fileOpen(&file, ARCHIVE_SDMC, "/", FS_OPEN_READ))) //init SD card for firmlaunch patches + if(BOOTCONFIG(5, 1) && R_SUCCEEDED(fileOpen(&file, ARCHIVE_SDMC, "/", FS_OPEN_READ))) //Init SD card if SAFE_MODE is being booted { IFile_Close(&file); } diff --git a/injector/source/patcher.h b/injector/source/patcher.h index 4c4a356..ea3ea5e 100644 --- a/injector/source/patcher.h +++ b/injector/source/patcher.h @@ -3,8 +3,9 @@ #include <3ds/types.h> #define PATH_MAX 255 -#define CONFIG(a) (((info.config >> (a + 16)) & 1) != 0) -#define MULTICONFIG(a) ((info.config >> (a * 2 + 6)) & 3) + +#define CONFIG(a) (((info.config >> (a + 16)) & 1) != 0) +#define MULTICONFIG(a) ((info.config >> (a * 2 + 6)) & 3) #define BOOTCONFIG(a, b) ((info.config >> a) & b) typedef struct __attribute__((packed)) diff --git a/source/firm.c b/source/firm.c index 11a9007..301839f 100755 --- a/source/firm.c +++ b/source/firm.c @@ -156,6 +156,9 @@ void main(void) { nandType = FIRMWARE_SYSNAND; firmSource = FIRMWARE_SYSNAND; + + //Flag to tell loader to init SD + configTemp |= 1 << 5; } else {