libctru
v2.4.1
|
CFGU (Configuration) Service. More...
#include <3ds/types.h>
Go to the source code of this file.
Enumerations | |
enum | CFG_Region { CFG_REGION_JPN = 0 , CFG_REGION_USA = 1 , CFG_REGION_EUR = 2 , CFG_REGION_AUS = 3 , CFG_REGION_CHN = 4 , CFG_REGION_KOR = 5 , CFG_REGION_TWN = 6 } |
Configuration region values. More... | |
enum | CFG_Language { CFG_LANGUAGE_DEFAULT = -1 , CFG_LANGUAGE_JP , CFG_LANGUAGE_EN , CFG_LANGUAGE_FR , CFG_LANGUAGE_DE , CFG_LANGUAGE_IT , CFG_LANGUAGE_ES , CFG_LANGUAGE_ZH , CFG_LANGUAGE_KO , CFG_LANGUAGE_NL , CFG_LANGUAGE_PT , CFG_LANGUAGE_RU , CFG_LANGUAGE_TW } |
Configuration language values. More... | |
enum | CFG_SystemModel { CFG_MODEL_3DS = 0 , CFG_MODEL_3DSXL = 1 , CFG_MODEL_N3DS = 2 , CFG_MODEL_2DS = 3 , CFG_MODEL_N3DSXL = 4 , CFG_MODEL_N2DSXL = 5 } |
Functions | |
Result | cfguInit (void) |
Initializes CFGU. | |
void | cfguExit (void) |
Exits CFGU. | |
Result | CFGU_SecureInfoGetRegion (u8 *region) |
Gets the system's region from secure info. More... | |
Result | CFGU_GenHashConsoleUnique (u32 appIDSalt, u64 *hash) |
Generates a console-unique hash. More... | |
Result | CFGU_GetRegionCanadaUSA (u8 *value) |
Gets whether the system's region is Canada or USA. More... | |
Result | CFGU_GetSystemModel (u8 *model) |
Gets the system's model. More... | |
Result | CFGU_GetModelNintendo2DS (u8 *value) |
Gets whether the system is a 2DS. More... | |
Result | CFGU_GetCountryCodeString (u16 code, u16 *string) |
Gets a string representing a country code. More... | |
Result | CFGU_GetCountryCodeID (u16 string, u16 *code) |
Gets a country code ID from its string. More... | |
Result | CFGU_IsNFCSupported (bool *isSupported) |
Checks if NFC (code name: fangate) is supported. More... | |
Result | CFGU_GetConfigInfoBlk2 (u32 size, u32 blkID, void *outData) |
Gets a config info block with flags = 2. More... | |
Result | CFG_GetConfigInfoBlk4 (u32 size, u32 blkID, void *outData) |
Gets a config info block with flags = 4. More... | |
Result | CFG_GetConfigInfoBlk8 (u32 size, u32 blkID, void *outData) |
Gets a config info block with flags = 8. More... | |
Result | CFG_SetConfigInfoBlk4 (u32 size, u32 blkID, const void *inData) |
Sets a config info block with flags = 4. More... | |
Result | CFG_SetConfigInfoBlk8 (u32 size, u32 blkID, const void *inData) |
Sets a config info block with flags = 8. More... | |
Result | CFG_UpdateConfigSavegame (void) |
Writes the CFG buffer in memory to the savegame in NAND. | |
Result | CFGU_GetSystemLanguage (u8 *language) |
Gets the system's language. More... | |
Result | CFGI_RestoreLocalFriendCodeSeed (void) |
Deletes the NAND LocalFriendCodeSeed file, then recreates it using the LocalFriendCodeSeed data stored in memory. | |
Result | CFGI_RestoreSecureInfo (void) |
Deletes the NAND SecureInfo file, then recreates it using the SecureInfo data stored in memory. | |
Result | CFGI_DeleteConfigSavefile (void) |
Deletes the "config" file stored in the NAND Config_Savegame. | |
Result | CFGI_FormatConfig (void) |
Formats Config_Savegame. | |
Result | CFGI_ClearParentalControls (void) |
Clears parental controls. | |
Result | CFGI_VerifySigLocalFriendCodeSeed (void) |
Verifies the RSA signature for the LocalFriendCodeSeed data already stored in memory. | |
Result | CFGI_VerifySigSecureInfo (void) |
Verifies the RSA signature for the SecureInfo data already stored in memory. | |
Result | CFGI_SecureInfoGetSerialNumber (u8 *serial) |
Gets the system's serial number. More... | |
Result | CFGI_GetLocalFriendCodeSeedData (u8 *data) |
Gets the 0x110-byte buffer containing the data for the LocalFriendCodeSeed. More... | |
Result | CFGI_GetLocalFriendCodeSeed (u64 *seed) |
Gets the 64-bit local friend code seed. More... | |
Result | CFGI_GetSecureInfoData (u8 *data) |
Gets the 0x11-byte data following the SecureInfo signature. More... | |
Result | CFGI_GetSecureInfoSignature (u8 *data) |
Gets the 0x100-byte RSA-2048 SecureInfo signature. More... | |
CFGU (Configuration) Service.
enum CFG_Language |
Configuration language values.
enum CFG_Region |
enum CFG_SystemModel |
Gets a config info block with flags = 4.
size | Size of the data to retrieve. |
blkID | ID of the block to retrieve. |
outData | Pointer to write the block data to. |
Gets a config info block with flags = 8.
size | Size of the data to retrieve. |
blkID | ID of the block to retrieve. |
outData | Pointer to write the block data to. |
Sets a config info block with flags = 4.
size | Size of the data to retrieve. |
blkID | ID of the block to retrieve. |
inData | Pointer to block data to write. |
Sets a config info block with flags = 8.
size | Size of the data to retrieve. |
blkID | ID of the block to retrieve. |
inData | Pointer to block data to write. |
Gets the 64-bit local friend code seed.
seed | Pointer to write the friend code seed to. |
Gets the 0x110-byte buffer containing the data for the LocalFriendCodeSeed.
data | Pointer to output the buffer. (The size must be at least 0x110-bytes) |
Gets the 0x11-byte data following the SecureInfo signature.
data | Pointer to output the buffer. (The size must be at least 0x11-bytes) |
Gets the 0x100-byte RSA-2048 SecureInfo signature.
data | Pointer to output the buffer. (The size must be at least 0x100-bytes) |
Gets the system's serial number.
serial | Pointer to output the serial to. (This is normally 0xF) |
Generates a console-unique hash.
appIDSalt | Salt to use. |
hash | Pointer to output the hash to. |
Gets a config info block with flags = 2.
size | Size of the data to retrieve. |
blkID | ID of the block to retrieve. |
outData | Pointer to write the block data to. |
Gets a country code ID from its string.
string | String to use. |
code | Pointer to output the country code to. |
Gets a string representing a country code.
code | Country code to use. |
string | Pointer to output the string to. |
Gets whether the system is a 2DS.
value | Pointer to output the result to. (0 = yes, 1 = no) |
Gets whether the system's region is Canada or USA.
value | Pointer to output the result to. (0 = no, 1 = yes) |
Gets the system's language.
language | Pointer to write the language to. (see CFG_Language) |
Gets the system's model.
model | Pointer to output the model to. (see CFG_SystemModel) |
Result CFGU_IsNFCSupported | ( | bool * | isSupported | ) |
Checks if NFC (code name: fangate) is supported.
isSupported | pointer to the output the result to. |
Gets the system's region from secure info.
region | Pointer to output the region to. (see CFG_Region) |