Skip to content

Commit

Permalink
Welcome back to the 1,25s speed boost
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Aug 26, 2016
1 parent 2dd64b8 commit 356268e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion injector/source/patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
5 changes: 3 additions & 2 deletions injector/source/patcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 3 additions & 0 deletions source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ void main(void)
{
nandType = FIRMWARE_SYSNAND;
firmSource = FIRMWARE_SYSNAND;

//Flag to tell loader to init SD
configTemp |= 1 << 5;
}
else
{
Expand Down

0 comments on commit 356268e

Please sign in to comment.