e1d0602f25
- Stability (tm) - Boots 1s faster on N3DS - (∩ ͡° ͜ʖ ͡°)⊃━☆゚
37 lines
863 B
C
37 lines
863 B
C
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#define MAKE_BRANCH(src,dst) (0xEA000000 | ((u32)((((u8 *)(dst) - (u8 *)(src)) >> 2) - 2) & 0xFFFFFF))
|
|
#define MAKE_BRANCH_LINK(src,dst) (0xEB000000 | ((u32)((((u8 *)(dst) - (u8 *)(src)) >> 2) - 2) & 0xFFFFFF))
|
|
|
|
#define CONFIG(a) (((cfwInfo.config >> (a + 17)) & 1) != 0)
|
|
#define MULTICONFIG(a) ((cfwInfo.config >> (a * 2 + 7)) & 3)
|
|
#define BOOTCONFIG(a, b) ((cfwInfo.config >> a) & b)
|
|
|
|
#define BOOTCFG_NAND BOOTCONFIG(0, 7)
|
|
#define BOOTCFG_FIRM BOOTCONFIG(3, 7)
|
|
#define BOOTCFG_NOFORCEFLAG BOOTCONFIG(6, 1)
|
|
|
|
enum multiOptions
|
|
{
|
|
DEFAULTEMU = 0,
|
|
BRIGHTNESS,
|
|
SPLASH,
|
|
PIN,
|
|
NEWCPU
|
|
};
|
|
|
|
enum singleOptions
|
|
{
|
|
AUTOBOOTEMU = 0,
|
|
USEEMUFIRM,
|
|
LOADEXTFIRMSANDMODULES,
|
|
PATCHGAMES,
|
|
PATCHVERSTRING,
|
|
SHOWGBABOOT,
|
|
PATCHACCESS,
|
|
PATCHUNITINFO,
|
|
DISABLEVECTORS
|
|
};
|