libnx
nacp.h
Go to the documentation of this file.
1 /**
2  * @file nacp.h
3  * @brief Control.nacp structure / related code for nacp.
4  * @copyright libnx Authors
5  */
6 
7 #pragma once
8 
9 /// Language entry. These strings are UTF-8.
10 typedef struct {
11  char name[0x200];
12  char author[0x100];
14 
15 typedef struct {
16  NacpLanguageEntry lang[16];
17 
18  u8 x3000_unk[0x24];////Normally all-zero?
19  u32 x3024_unk;
20  u32 x3028_unk;
21  u32 x302C_unk;
22  u32 x3030_unk;
23  u32 x3034_unk;
24  u64 titleID0;
25 
26  u8 x3040_unk[0x20];
27  char version[0x10];
28 
29  u64 titleID_DlcBase;
30  u64 titleID1;
31 
32  u32 x3080_unk;
33  u32 x3084_unk;
34  u32 x3088_unk;
35  u8 x308C_unk[0x24];//zeros?
36 
37  u64 titleID2;
38  u64 titleIDs[7];//"Array of application titleIDs, normally the same as the above app-titleIDs. Only set for game-updates?"
39 
40  u32 x30F0_unk;
41  u32 x30F4_unk;
42 
43  u64 titleID3;//"Application titleID. Only set for game-updates?"
44 
45  char bcatPassphrase[0x40];
46  u8 x3140_unk[0xEC0];//Normally all-zero?
47 } NacpStruct;
48 
49 /// Get the NacpLanguageEntry from the input nacp corresponding to the current system language (this may fallback to other languages when needed). Output langentry is NULL if none found / content of entry is empty.
51 
Language entry. These strings are UTF-8.
Definition: nacp.h:10
u32 Result
Function error code result type.
Definition: types.h:46
uint8_t u8
8-bit unsigned integer.
Definition: types.h:21
uint64_t u64
64-bit unsigned integer.
Definition: types.h:24
Definition: nacp.h:15
uint32_t u32
32-bit unsigned integer.
Definition: types.h:23
Result nacpGetLanguageEntry(NacpStruct *nacp, NacpLanguageEntry **langentry)
Get the NacpLanguageEntry from the input nacp corresponding to the current system language (this may ...