saner new3DS vs old3DS detection
This commit is contained in:
Wolfvak 2019-09-22 18:10:55 -03:00 committed by d0k3
parent 398c7fd14c
commit 3e25393284
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include "common.h" #include "common.h"
// see: https://3dbrew.org/wiki/CONFIG11_Registers // see: https://3dbrew.org/wiki/CONFIG11_Registers
#define IS_O3DS ((*(vu32*) 0x10140FFC) != 0x7) #define IS_O3DS (((*(vu16*) 0x10140FFC) & 2) == 0)
// see: https://www.3dbrew.org/wiki/Memory_layout#ARM9_ITCM // see: https://www.3dbrew.org/wiki/Memory_layout#ARM9_ITCM
// see: https://www.3dbrew.org/wiki/OTP_Registers#Plaintext_OTP // see: https://www.3dbrew.org/wiki/OTP_Registers#Plaintext_OTP

View File

@ -37,7 +37,7 @@ typedef struct {
u8 region; u8 region;
u8 unknown; u8 unknown;
char serial[0xF]; char serial[0xF];
} PACKED_STRUCT SecureInfo; } PACKED_ALIGN(1) SecureInfo;
// includes all essential system files // includes all essential system files
// (this is of our own making) // (this is of our own making)