Refine the N3DS check

This commit is contained in:
TuxSH 2017-05-24 21:40:09 +02:00
parent d57d8aaae7
commit 8395540288

View File

@ -47,16 +47,14 @@ typedef volatile s64 vs64;
#include "3dsheaders.h"
#define ARM11_CORE0_MAILBOX_ENTRYPOINT ((vu32 *)0x1FFFFFFC)
#define CFG_BOOTENV (*(vu32 *)0x10010000)
#define CFG_UNITINFO (*(vu8 *)0x10010010)
#define CFG_TWLUNITINFO (*(vu8 *)0x10010014)
#define OTP_DEVCONSOLEID (*(vu64 *)0x10012000)
#define OTP_TWLCONSOLEID (*(vu64 *)0x10012100)
#define PDN_MPCORE_CFG (*(vu32 *)0x10140FFC)
#define CFG11_SOCINFO (*(vu32 *)0x10140FFC)
#define ISN3DS (PDN_MPCORE_CFG == 7)
#define ISN3DS (CFG11_SOCINFO & 2)
#define ISDEVUNIT (CFG_UNITINFO != 0)
typedef struct __attribute__((packed))