NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
NWC24Config.h
1#ifndef RVL_SDK_NWC24_CONFIG_H
2#define RVL_SDK_NWC24_CONFIG_H
3#include <revolution/NWC24/NWC24Types.h>
4#include <types.h>
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef enum {
10 NWC24_IDCS_INITIAL,
11 NWC24_IDCS_GENERATED,
12 NWC24_IDCS_REGISTERED
13} NWC24IDCreationStage;
14
15typedef struct NWC24Config {
16 u32 magic; // at 0x0
17 u32 version; // at 0x4
18 u64 userId; // at 0x8
19 u32 createCount; // at 0x10
20 NWC24IDCreationStage createStage; // at 0x14
21 char acctDomain[64]; // at 0x18
22 char password[32]; // at 0x58
23 char mailchkId[36]; // at 0x78
24 char acctUrl[128]; // at 0x9C
25 char mailchkUrl[128]; // at 0x11C
26 char mailrecvUrl[128]; // at 0x19C
27 char maildeleteUrl[128]; // at 0x21C
28 char mailsendUrl[128]; // at 0x29C
29 char UNK_0x31C[0x3F8 - 0x31C];
30 BOOL allowTitleBoot; // at 0x3F8
31 u32 checksum; // at 0x3FC
33
34NWC24Err NWC24GetMyUserId(u64* idOut);
35NWC24Err NWC24GenerateNewUserId(u64* idOut);
36NWC24Err NWC24iConfigOpen(void);
37NWC24Err NWC24iConfigReload(void);
38NWC24Err NWC24iConfigFlush(void);
39const char* NWC24GetAccountDomain(void);
40const char* NWC24GetMBoxDir(void);
41u32 NWC24GetAppId(void);
42u16 NWC24GetGroupId(void);
43
44#ifdef __cplusplus
45}
46#endif
47#endif