Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
m_Do_main.h
Go to the documentation of this file.
1#ifndef M_DO_M_DO_MAIN_H
2#define M_DO_M_DO_MAIN_H
3
5#include "dolphin/os/OSTime.h"
6
7class JKRExpHeap;
8
9void version_check();
10s32 LOAD_COPYDATE(void*);
11
12class HeapCheck {
13public:
14 HeapCheck(JKRExpHeap* heap, const char* name, const char* jName) {
15 mName = name;
16 mJName = jName;
17 setHeap(heap);
18 }
19
20 void CheckHeap1(void);
21 s32 getUsedCount(void) const;
22 void heapDisplay(void) const;
23
26 JKRExpHeap* getHeap() { return mHeap; }
31 const char* getName() const { return mName; }
36
39
40private:
41 /* 0x00 */ const char* mName;
42 /* 0x04 */ const char* mJName;
43 /* 0x08 */ JKRExpHeap* mHeap;
46 /* 0x14 */ s32 field_0x14;
47 /* 0x18 */ s32 field_0x18;
48 /* 0x1C */ u32 mTargetHeapSize;
49 /* 0x20 */ u32 mUsedCount;
50 /* 0x24 */ u32 mTotalUsedSize;
51};
52
53struct mDoMain {
54 static char COPYDATE_STRING[18];
55 static u32 memMargin;
60};
61
62#endif /* M_DO_M_DO_MAIN_H */
s64 OSTime
Definition OSTime.h:10
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition m_Do_main.h:12
JKRExpHeap * mHeap
Definition m_Do_main.h:43
void setHeap(JKRExpHeap *i_heap)
Definition m_Do_main.h:27
u32 & getUsedCountRef()
Definition m_Do_main.h:24
u32 getRelUsedCount() const
Definition m_Do_main.h:37
void saveRelBase()
Definition m_Do_main.h:32
s32 getUsedCount(void) const
Definition m_Do_main.cpp:131
s32 field_0x14
Definition m_Do_main.h:46
u32 getRelTotalUsedSize() const
Definition m_Do_main.h:38
void heapDisplay(void) const
Definition m_Do_main.cpp:136
s32 field_0x18
Definition m_Do_main.h:47
void setHeapSize(u32 i_size)
Definition m_Do_main.h:28
u32 mUsedCount
Definition m_Do_main.h:49
s32 getMaxTotalUsedSize()
Definition m_Do_main.h:29
s32 mMaxTotalFreeSize
Definition m_Do_main.h:45
const char * getName() const
Definition m_Do_main.h:31
u32 mTotalUsedSize
Definition m_Do_main.h:50
HeapCheck(JKRExpHeap *heap, const char *name, const char *jName)
Definition m_Do_main.h:14
const char * mJName
Definition m_Do_main.h:42
u32 mTargetHeapSize
Definition m_Do_main.h:48
JKRExpHeap * getHeap()
Definition m_Do_main.h:26
u32 & getTotalUsedSizeRef()
Definition m_Do_main.h:25
void CheckHeap1(void)
Definition m_Do_main.cpp:39
const char * mName
Definition m_Do_main.h:41
s32 getMaxTotalFreeSize()
Definition m_Do_main.h:30
s32 mMaxTotalUsedSize
Definition m_Do_main.h:44
void version_check()
Definition m_Do_main.cpp:27
s32 LOAD_COPYDATE(void *)
Definition m_Do_main.cpp:372
Definition d_a_balloon_2D.h:178
s32 getTotalUsedSize(void) const
Definition JKRExpHeap.cpp:566
Definition m_Do_main.h:53
static OSTime sPowerOnTime
Definition m_Do_main.h:57
static u8 mHeapBriefType
Definition m_Do_main.h:56
static OSTime sHungUpTime
Definition m_Do_main.h:58
static u32 memMargin
Definition m_Do_main.h:55
static s8 developmentMode
Definition m_Do_main.h:59
static char COPYDATE_STRING[18]
Definition m_Do_main.h:54
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8