NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
NWC24Manage.h
1#ifndef RVL_SDK_NWC24_MANAGE_H
2#define RVL_SDK_NWC24_MANAGE_H
3#include <revolution/NWC24/NWC24Config.h>
4#include <revolution/NWC24/NWC24Download.h>
5#include <revolution/NWC24/NWC24FriendList.h>
6#include <revolution/NWC24/NWC24SecretFList.h>
7#include <revolution/NWC24/NWC24Types.h>
8#include <types.h>
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define NWC24_IO_BUFFER_SIZE 512
14
15#define WORK_SIZE(x) (ROUND_UP(sizeof(x), 0x100))
16typedef struct NWC24Work {
17 char stringWork[1024]; // at 0x0
18 char WORK_0x400[0x800 - 0x400];
19 char pathWork[128]; // at 0x800
20 char WORK_0x880[0x900 - 0x880];
21 u8 readBuffer[NWC24_IO_BUFFER_SIZE]; // at 0x900
22 u8 writeBuffer[NWC24_IO_BUFFER_SIZE]; // at 0xB00
23 u8 config[WORK_SIZE(NWC24Config)]; // at 0xD00
24 char WORK_0x1100[128];
25 char WORK_0x1180[128];
26 char WORK_0x1200[128];
27 char WORK_0x1280[128];
28 u8 base64Work[256]; // at 0x1300
29 char WORK_0x1400[0x2400 - 0x1400];
30 u8 flHeader[WORK_SIZE(NWC24FLHeader)]; // at 0x2800
31 u8 secretFlHeader[WORK_SIZE(NWC24SecretFLHeader)]; // at 0x2800
32 u8 dlHeader[WORK_SIZE(NWC24DlHeader)]; // at 0x3000
33 u8 dlTask[WORK_SIZE(NWC24DlTask)]; // at 0x3800
34} NWC24Work;
35#undef WORK_SIZE
36
37extern NWC24Work* NWC24WorkP;
38
39void NWC24iRegister(void);
40NWC24Err NWC24OpenLib(NWC24Work* work);
41NWC24Err NWC24CloseLib(void);
42BOOL NWC24IsMsgLibOpened(void);
43BOOL NWC24IsMsgLibOpenedByTool(void);
44BOOL NWC24IsMsgLibOpenBlocking(void);
45NWC24Err NWC24BlockOpenMsgLib(BOOL block);
46NWC24Err NWC24iSetNewMsgArrived(u32 flags);
47void NWC24iSetErrorCode(u32 code);
48
49#ifdef __cplusplus
50}
51#endif
52#endif