Result CFGI_VerifySigSecureInfo(void)
Verifies the RSA signature for the SecureInfo data already stored in memory.
Result CFGU_GetSystemLanguage(u8 *language)
Gets the system's language.
Result CFGI_VerifySigLocalFriendCodeSeed(void)
Verifies the RSA signature for the LocalFriendCodeSeed data already stored in memory.
Result CFGI_FormatConfig(void)
Formats Config_Savegame.
Result CFGU_GetCountryCodeString(u16 code, u16 *string)
Gets a string representing a country code.
Result CFGI_DeleteConfigSavefile(void)
Deletes the "config" file stored in the NAND Config_Savegame.
Result CFGI_GetSecureInfoData(u8 *data)
Gets the 0x11-byte data following the SecureInfo signature.
Result CFG_SetConfigInfoBlk8(u32 size, u32 blkID, const void *inData)
Sets a config info block with flags = 8.
Result CFGU_GetModelNintendo2DS(u8 *value)
Gets whether the system is a 2DS.
Result CFGU_GetCountryCodeID(u16 string, u16 *code)
Gets a country code ID from its string.
Result CFGU_GenHashConsoleUnique(u32 appIDSalt, u64 *hash)
Generates a console-unique hash.
Result CFGI_SecureInfoGetSerialNumber(u8 *serial)
Gets the system's serial number.
Result CFGU_GetConfigInfoBlk2(u32 size, u32 blkID, void *outData)
Gets a config info block with flags = 2.
Result CFG_GetConfigInfoBlk8(u32 size, u32 blkID, void *outData)
Gets a config info block with flags = 8.
Result CFGU_GetSystemModel(u8 *model)
Gets the system's model.
Result CFG_UpdateConfigSavegame(void)
Writes the CFG buffer in memory to the savegame in NAND.
CFG_SystemModel
Definition: cfgu.h:40
@ CFG_MODEL_N3DS
New 3DS (KTR)
Definition: cfgu.h:43
@ CFG_MODEL_3DSXL
Old 3DS XL (SPR)
Definition: cfgu.h:42
@ CFG_MODEL_N3DSXL
New 3DS XL (RED)
Definition: cfgu.h:45
@ CFG_MODEL_2DS
Old 2DS (FTR)
Definition: cfgu.h:44
@ CFG_MODEL_3DS
Old 3DS (CTR)
Definition: cfgu.h:41
@ CFG_MODEL_N2DSXL
New 2DS XL (JAN)
Definition: cfgu.h:46
Result CFGU_IsNFCSupported(bool *isSupported)
Checks if NFC (code name: fangate) is supported.
Result CFGI_RestoreLocalFriendCodeSeed(void)
Deletes the NAND LocalFriendCodeSeed file, then recreates it using the LocalFriendCodeSeed data store...
Result CFGU_GetRegionCanadaUSA(u8 *value)
Gets whether the system's region is Canada or USA.
Result CFGI_GetLocalFriendCodeSeed(u64 *seed)
Gets the 64-bit local friend code seed.
Result cfguInit(void)
Initializes CFGU.
Result CFGI_GetLocalFriendCodeSeedData(u8 *data)
Gets the 0x110-byte buffer containing the data for the LocalFriendCodeSeed.
CFG_Language
Configuration language values.
Definition: cfgu.h:22
@ CFG_LANGUAGE_NL
Dutch.
Definition: cfgu.h:32
@ CFG_LANGUAGE_TW
Traditional Chinese.
Definition: cfgu.h:35
@ CFG_LANGUAGE_DE
German.
Definition: cfgu.h:27
@ CFG_LANGUAGE_KO
Korean.
Definition: cfgu.h:31
@ CFG_LANGUAGE_IT
Italian.
Definition: cfgu.h:28
@ CFG_LANGUAGE_EN
English.
Definition: cfgu.h:25
@ CFG_LANGUAGE_ZH
Simplified Chinese.
Definition: cfgu.h:30
@ CFG_LANGUAGE_FR
French.
Definition: cfgu.h:26
@ CFG_LANGUAGE_ES
Spanish.
Definition: cfgu.h:29
@ CFG_LANGUAGE_RU
Russian.
Definition: cfgu.h:34
@ CFG_LANGUAGE_PT
Portugese.
Definition: cfgu.h:33
@ CFG_LANGUAGE_JP
Japanese.
Definition: cfgu.h:24
@ CFG_LANGUAGE_DEFAULT
Use system language in errorInit.
Definition: cfgu.h:23
CFG_Region
Configuration region values.
Definition: cfgu.h:10
@ CFG_REGION_AUS
Australia.
Definition: cfgu.h:14
@ CFG_REGION_EUR
Europe.
Definition: cfgu.h:13
@ CFG_REGION_USA
USA.
Definition: cfgu.h:12
@ CFG_REGION_TWN
Taiwan.
Definition: cfgu.h:17
@ CFG_REGION_JPN
Japan.
Definition: cfgu.h:11
@ CFG_REGION_KOR
Korea.
Definition: cfgu.h:16
@ CFG_REGION_CHN
China.
Definition: cfgu.h:15
Result CFGI_ClearParentalControls(void)
Clears parental controls.
Result CFGU_SecureInfoGetRegion(u8 *region)
Gets the system's region from secure info.
Result CFG_SetConfigInfoBlk4(u32 size, u32 blkID, const void *inData)
Sets a config info block with flags = 4.
Result CFGI_RestoreSecureInfo(void)
Deletes the NAND SecureInfo file, then recreates it using the SecureInfo data stored in memory.
Result CFGI_GetSecureInfoSignature(u8 *data)
Gets the 0x100-byte RSA-2048 SecureInfo signature.
void cfguExit(void)
Exits CFGU.
Result CFG_GetConfigInfoBlk4(u32 size, u32 blkID, void *outData)
Gets a config info block with flags = 4.
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
s32 Result
Function result.
Definition: types.h:42
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23