NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
scsystem.h
1#ifndef RVL_SDK_SC_SCSYSTEM_H
2#define RVL_SDK_SC_SCSYSTEM_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef enum {
9 SC_STATUS_OK,
10 SC_STATUS_BUSY,
11 SC_STATUS_FATAL,
12 SC_STATUS_PARSE
13} SCStatus;
14
15typedef enum {
16 // IPL settings
17 SC_ITEM_IPL_CB, // Counter bias
18 SC_ITEM_IPL_AR, // Aspect ratio
19 SC_ITEM_IPL_ARN, // Autorun mode
20 SC_ITEM_IPL_CD, // Config done flag
21 SC_ITEM_IPL_CD2, // Config done flag 2
22 SC_ITEM_IPL_DH, // Display horizontal offset
23 SC_ITEM_IPL_E60, // EuRgb60 mode
24 SC_ITEM_IPL_EULA, // EULA
25 SC_ITEM_IPL_FRC, // Free channel app count
26 SC_ITEM_IPL_IDL, // Idle mode
27 SC_ITEM_IPL_INC, // Installed channel app count
28 SC_ITEM_IPL_LNG, // Language
29 SC_ITEM_IPL_NIK, // Owner nickname
30 SC_ITEM_IPL_PC, // Parental controls
31 SC_ITEM_IPL_PGS, // Progressive mode
32 SC_ITEM_IPL_SSV, // Screen saver mode
33 SC_ITEM_IPL_SADR, // Simple address
34 SC_ITEM_IPL_SND, // Sound mode
35 SC_ITEM_IPL_UPT, // Update type
36
37 // Network settings
38 SC_ITEM_NET_CNF, // Network config
39 SC_ITEM_NET_CTPC, // Network content restrictions
40 SC_ITEM_NET_PROF, // Network profile
41 SC_ITEM_NET_WCPC, // WC24 parental controls
42 SC_ITEM_NET_WCFG, // WC24 flags
43
44 // Development settings
45 SC_ITEM_DEV_BTM, // Boot mode
46 SC_ITEM_DEV_VIM, // Video mode
47 SC_ITEM_DEV_CTC, // Country code
48 SC_ITEM_DEV_DSM, // Drive-saving mode
49
50 // Bluetooth settings
51 SC_ITEM_BT_DINF, // Bluetooth device info
52 SC_ITEM_BT_SENS, // Remote sensitivity
53 SC_ITEM_BT_SPKV, // WPAD speaker volume
54 SC_ITEM_BT_MOT, // WPAD motor mode
55 SC_ITEM_BT_BAR, // WPAD sensor bar position
56
57 // Miscellaneous settings
58 SC_ITEM_DVD_CNF, // DVD config
59 SC_ITEM_WWW_RST, // WWW restriction
60
61 SC_ITEM_MAX
62} SCItemID;
63
64typedef void (*SCFlushCallback)(SCStatus status);
65
66void SCInit(void);
67u32 SCCheckStatus(void);
68
69BOOL SCFindByteArrayItem(void* dst, u32 len, SCItemID id);
70BOOL SCReplaceByteArrayItem(const void* src, u32 len, SCItemID id);
71
72BOOL SCFindU8Item(u8* dst, SCItemID id);
73BOOL SCFindS8Item(s8* dst, SCItemID id);
74BOOL SCFindU32Item(u32* dst, SCItemID id);
75
76BOOL SCReplaceU8Item(u8 data, SCItemID id);
77
78void SCFlushAsync(SCFlushCallback callback);
79
80#ifdef __cplusplus
81}
82#endif
83#endif