Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASResArcLoader.h
Go to the documentation of this file.
1#ifndef JASRESARCLOADER_H
2#define JASRESARCLOADER_H
3
5
6namespace JASResArcLoader {
7 /* 80290BD0 */ size_t getResSize(JKRArchive const*, u16);
8 /* 80290C04 */ size_t getResMaxSize(JKRArchive const*);
9 /* 80290C7C */ static void loadResourceCallback(void*);
10 /* 80290D18 */ int loadResourceAsync(JKRArchive*, u16, u8*, u32, void (*)(u32, u32), u32);
11};
12
14class JKRArchive;
15
16// from pikmin2
17typedef void (*LoadCallback)(u32, u32);
18
23
25 inline CallbackArgs(u16 id, u8* buf, u32 size, JKRArchive* archive)
26 : mArchive(archive)
27 , mID(id)
28 , mBuffer(buf)
29 , mBufferSize(size)
30 , mCallback(0)
31 , mCallbackArg(0)
32 , mQueue(0)
33 {
34 }
35
37 u16 mID; // _04
38 u8* mBuffer; // _08
41 u32 mCallbackArg; // _14, arg to pass to mCallback along with readResource result
43};
44
45#endif /* JASRESARCLOADER_H */
ResArcMessage
Definition JASResArcLoader.h:19
@ RESARCMSG_Error
Definition JASResArcLoader.h:20
@ RESARCMSG_Success
Definition JASResArcLoader.h:21
void(* LoadCallback)(u32, u32)
Definition JASResArcLoader.h:17
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRArchive.h:57
static SECTION_RODATA u8 const id[8]
Definition d_a_npc_bans.cpp:1309
Definition JASResArcLoader.h:6
size_t getResMaxSize(JKRArchive const *)
Definition JASResArcLoader.cpp:25
size_t getResSize(JKRArchive const *, u16)
Definition JASResArcLoader.cpp:13
int loadResourceAsync(JKRArchive *, u16, u8 *, u32, void(*)(u32, u32), u32)
static void loadResourceCallback(void *)
Definition JASResArcLoader.cpp:43
Definition JASResArcLoader.h:24
u16 mID
Definition JASResArcLoader.h:37
u8 * mBuffer
Definition JASResArcLoader.h:38
CallbackArgs(u16 id, u8 *buf, u32 size, JKRArchive *archive)
Definition JASResArcLoader.h:25
LoadCallback mCallback
Definition JASResArcLoader.h:40
OSMessageQueue * mQueue
Definition JASResArcLoader.h:42
JKRArchive * mArchive
Definition JASResArcLoader.h:36
u32 mBufferSize
Definition JASResArcLoader.h:39
u32 mCallbackArg
Definition JASResArcLoader.h:41
Definition OSMessage.h:12
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8