Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASWaveArcLoader.h
Go to the documentation of this file.
1#ifndef JASWAVEARCLOADER_H
2#define JASWAVEARCLOADER_H
3
5#include "dol2asm.h"
7
8class JKRHeap;
9class JKRSolidHeap;
10
17 /* 8029A7B8 */ virtual ~JASDisposer() {}
18 /* 80290BCC */ virtual void onDispose() {}
19};
20
21#define DIR_MAX 64
22
28 /* 8029A0A0 */ static JASHeap* getRootHeap();
29 /* 8029A0D0 */ static void setCurrentDir(char const*);
30 /* 8029A130 */ static char* getCurrentDir();
31
32 static char sCurrentDir[DIR_MAX];
34};
35
41 /* 8029A13C */ JASWaveArc();
42 /* 8029A258 */ bool loadSetup(u32);
43 /* 8029A2EC */ bool eraseSetup();
44 /* 8029A378 */ static void loadToAramCallback(void*);
45 /* 8029A404 */ bool sendLoadCmd();
46 /* 8029A4C0 */ bool load(JASHeap*);
47 /* 8029A580 */ bool loadTail(JASHeap*);
48 /* 8029A640 */ bool erase();
49 /* 8029A6AC */ void setEntryNum(s32);
50 /* 8029A70C */ void setFileName(char const*);
51
52 /* 8029A1B4 */ virtual ~JASWaveArc();
53 /* 8029A664 */ virtual void onDispose();
54 /* 80298FA0 */ virtual void onLoadDone() {}
55 /* 80298FA4 */ virtual void onEraseDone() {}
56
57 s32 getStatus() { return mStatus; }
58
60 // not official struct name
61 /* 0x0 */ JASWaveArc* mWavArc;
62 /* 0x4 */ long mEntryNum;
63 /* 0x8 */ u32 mBase;
64 /* 0xC */ u32 _c;
65 };
66
67 /* 0x04 */ JASHeap mHeap;
68 /* 0x48 */ u32 _48;
69 /* 0x4C */ volatile s32 mStatus;
70 /* 0x50 */ int mEntryNum;
71 /* 0x54 */ u32 mFileLength;
72 /* 0x58 */ u16 _58;
73 /* 0x5A */ u16 _5a;
74 /* 0x5C */ OSMutex mMutex;
75};
76
77#endif /* JASWAVEARCLOADER_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASHeapCtrl.h:17
Definition JKRHeap.h:16
Definition JKRSolidHeap.h:10
Definition JASWaveArcLoader.h:15
JASDisposer()
Definition JASWaveArcLoader.h:16
virtual ~JASDisposer()
Definition JASWaveArcLoader.h:17
virtual void onDispose()
Definition JASWaveArcLoader.h:18
Definition JASWaveArcLoader.h:27
static JASHeap * sAramHeap
Definition JASWaveArcLoader.h:33
static char sCurrentDir[DIR_MAX]
Definition JASWaveArcLoader.h:32
static JASHeap * getRootHeap()
Definition JASWaveArcLoader.cpp:19
static void setCurrentDir(char const *)
Definition JASWaveArcLoader.cpp:30
static char * getCurrentDir()
Definition JASWaveArcLoader.cpp:43
Definition JASWaveArcLoader.h:59
u32 _c
Definition JASWaveArcLoader.h:64
u32 mBase
Definition JASWaveArcLoader.h:63
long mEntryNum
Definition JASWaveArcLoader.h:62
JASWaveArc * mWavArc
Definition JASWaveArcLoader.h:61
Definition JASWaveArcLoader.h:40
OSMutex mMutex
Definition JASWaveArcLoader.h:74
u16 _5a
Definition JASWaveArcLoader.h:73
volatile s32 mStatus
Definition JASWaveArcLoader.h:69
bool sendLoadCmd()
Definition JASWaveArcLoader.cpp:108
int mEntryNum
Definition JASWaveArcLoader.h:70
JASHeap mHeap
Definition JASWaveArcLoader.h:67
bool eraseSetup()
Definition JASWaveArcLoader.cpp:76
void setFileName(char const *)
Definition JASWaveArcLoader.cpp:197
bool loadSetup(u32)
Definition JASWaveArcLoader.cpp:62
bool erase()
Definition JASWaveArcLoader.cpp:170
virtual void onLoadDone()
Definition JASWaveArcLoader.h:54
s32 getStatus()
Definition JASWaveArcLoader.h:57
u32 _48
Definition JASWaveArcLoader.h:68
static void loadToAramCallback(void *)
Definition JASWaveArcLoader.cpp:92
virtual void onEraseDone()
Definition JASWaveArcLoader.h:55
bool load(JASHeap *)
Definition JASWaveArcLoader.cpp:132
u32 mFileLength
Definition JASWaveArcLoader.h:71
u16 _58
Definition JASWaveArcLoader.h:72
void setEntryNum(s32)
Definition JASWaveArcLoader.cpp:182
bool loadTail(JASHeap *)
Definition JASWaveArcLoader.cpp:151
virtual void onDispose()
Definition JASWaveArcLoader.cpp:175
virtual ~JASWaveArc()
Definition JASWaveArcLoader.cpp:59
JASWaveArc()
Definition JASWaveArcLoader.cpp:48
Definition OSMutex.h:10
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6