Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
DynamicLink.h
Go to the documentation of this file.
1#ifndef DYNAMICLINK_H
2#define DYNAMICLINK_H
3
4#include "dolphin/os.h"
5
6class JKRArchive;
7class JKRFileCache;
9
11 /* 0x00 */ u16 mLinkCount;
12 /* 0x02 */ u16 mDoLinkCount;
15
16 /* 0x0C */ /*vtable*/
17 /* 802621CC */ virtual ~DynamicModuleControlBase();
18 /* 800188DC */ virtual const char* getModuleName() const { return NULL; };
19 /* 80263210 */ virtual int getModuleSize() const { return 0; };
20 /* 80263200 */ virtual const char* getModuleTypeString() const {return "Base";};
21 virtual void dump();
22 /* 80262470 */ static void dump();
23 /* 802631FC */ virtual void dump2() {};
24 /* 802631DC */ virtual bool do_load() {return true;};
25 /* 802631F4 */ virtual BOOL do_load_async() {return true;};
26 /* 802631E4 */ virtual bool do_unload() {return true;};
27 /* 802631D4 */ virtual BOOL do_link() {return TRUE;};
28 /* 802631EC */ virtual bool do_unlink() {return true; };
29 /* 80262284 */ DynamicModuleControlBase();
30 /* 802622D0 */ BOOL link();
31 /* 80262364 */ BOOL unlink();
32 /* 802623EC */ BOOL load_async();
33 /* 8026242C */ bool force_unlink();
34
35 static inline DynamicModuleControlBase* getFirstClass() { return mFirst; }
37 bool isLinked() const { return mLinkCount != 0; }
38
41};
42
44 /* 80263218 */ virtual const char* getModuleName() const { return mName; };
45 /* 800188E4 */ virtual ~DynamicModuleControl() {}
46 /* 80263000 */ virtual int getModuleSize() const;
47 /* 80263070 */ virtual const char* getModuleTypeString() const;
48 // virtual void dump();
49 /* 80262C0C */ virtual void dump2();
50 /* 802627E8 */ virtual bool do_load();
51 /* 80262AFC */ virtual BOOL do_load_async();
52 /* 80262BC4 */ virtual bool do_unload();
53 /* 80262C5C */ virtual BOOL do_link();
54 /* 80262F28 */ virtual bool do_unlink();
55 /* 80262660 */ DynamicModuleControl(char const*);
56 /* 802626D0 */ static JKRArchive* mountCallback(void*);
57 /* 8026275C */ static bool initialize();
58 /* 80262794 */ static bool callback(void*);
59
61 /* 0x14 */ void* mBss;
62 /* 0x18 */ u32 unk_24;
63 /* 0x1c */ const char* mName;
64 /* 0x20 */ u8 mResourceType;
65 /* 0x21 */ u8 unk_33;
66 /* 0x22 */ u16 mChecksum;
67 /* 0x24 */ s32 mSize;
69
73};
74
75#endif /* DYNAMICLINK_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRArchive.h:57
Definition JKRFileCache.h:12
Definition m_Do_dvd_thread.h:95
Definition DynamicLink.h:10
static DynamicModuleControlBase * mLast
Definition DynamicLink.h:40
virtual void dump()
Definition DynamicLink.cpp:112
BOOL load_async()
Definition DynamicLink.cpp:93
virtual BOOL do_link()
Definition DynamicLink.h:27
DynamicModuleControlBase()
Definition DynamicLink.cpp:45
DynamicModuleControlBase * getNextClass()
Definition DynamicLink.h:36
virtual bool do_unload()
Definition DynamicLink.h:26
virtual const char * getModuleTypeString() const
Definition DynamicLink.h:20
DynamicModuleControlBase * mPrev
Definition DynamicLink.h:13
virtual ~DynamicModuleControlBase()
Definition DynamicLink.cpp:25
virtual bool do_unlink()
Definition DynamicLink.h:28
virtual int getModuleSize() const
Definition DynamicLink.h:19
virtual const char * getModuleName() const
Definition DynamicLink.h:18
static DynamicModuleControlBase * getFirstClass()
Definition DynamicLink.h:35
virtual void dump2()
Definition DynamicLink.h:23
virtual bool do_load()
Definition DynamicLink.h:24
BOOL link()
Definition DynamicLink.cpp:61
bool force_unlink()
Definition DynamicLink.cpp:102
u16 mDoLinkCount
Definition DynamicLink.h:12
DynamicModuleControlBase * mNext
Definition DynamicLink.h:14
bool isLinked() const
Definition DynamicLink.h:37
virtual BOOL do_load_async()
Definition DynamicLink.h:25
static DynamicModuleControlBase * mFirst
Definition DynamicLink.h:39
u16 mLinkCount
Definition DynamicLink.h:11
BOOL unlink()
Definition DynamicLink.cpp:78
Definition DynamicLink.h:43
OSModuleHeader * mModule
Definition DynamicLink.h:60
virtual BOOL do_link()
Definition DynamicLink.cpp:359
virtual const char * getModuleName() const
Definition DynamicLink.h:44
mDoDvdThd_callback_c * mAsyncLoadCallback
Definition DynamicLink.h:68
const char * mName
Definition DynamicLink.h:63
static u32 sAllocBytes
Definition DynamicLink.h:70
virtual ~DynamicModuleControl()
Definition DynamicLink.h:45
virtual int getModuleSize() const
Definition DynamicLink.cpp:478
u8 unk_33
Definition DynamicLink.h:65
virtual bool do_unlink()
Definition DynamicLink.cpp:457
u8 mResourceType
Definition DynamicLink.h:64
void * mBss
Definition DynamicLink.h:61
virtual void dump2()
Definition DynamicLink.cpp:348
virtual bool do_load()
Definition DynamicLink.cpp:215
virtual BOOL do_load_async()
Definition DynamicLink.cpp:315
static JKRFileCache * sFileCache
Definition DynamicLink.h:72
u16 mChecksum
Definition DynamicLink.h:66
static bool callback(void *)
Definition DynamicLink.cpp:197
static JKRArchive * mountCallback(void *)
Definition DynamicLink.cpp:173
static bool initialize()
Definition DynamicLink.cpp:187
static JKRArchive * sArchive
Definition DynamicLink.h:71
virtual bool do_unload()
Definition DynamicLink.cpp:339
u32 unk_24
Definition DynamicLink.h:62
s32 mSize
Definition DynamicLink.h:67
virtual const char * getModuleTypeString() const
Definition DynamicLink.cpp:492
Definition OSLink.h:50
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8