mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
d_debug_camera mostly done (#2695)
* d_debug_camera mostly done * update some alink demo stuff * some misc debug stuff
This commit is contained in:
@@ -9,6 +9,8 @@ class JKRExpHeap;
|
||||
void version_check();
|
||||
s32 LOAD_COPYDATE(void*);
|
||||
|
||||
const int HeapCheckTableNum = 8;
|
||||
|
||||
class HeapCheck {
|
||||
public:
|
||||
HeapCheck(JKRExpHeap* heap, const char* name, const char* jName) {
|
||||
@@ -26,7 +28,7 @@ public:
|
||||
JKRExpHeap* getHeap() { return mHeap; }
|
||||
void setHeap(JKRExpHeap* i_heap) { mHeap = i_heap; }
|
||||
void setHeapSize(u32 i_size) { mTargetHeapSize = i_size; }
|
||||
s32 getMaxTotalUsedSize() { return mMaxTotalUsedSize; }
|
||||
s32 getMaxTotalUsedSize() const { return mMaxTotalUsedSize; }
|
||||
s32 getMaxTotalFreeSize() { return mMaxTotalFreeSize; }
|
||||
const char* getName() const { return mName; }
|
||||
void saveRelBase() {
|
||||
@@ -34,6 +36,8 @@ public:
|
||||
mTotalUsedSize = mHeap->getTotalUsedSize();
|
||||
}
|
||||
|
||||
u32 getTargetHeapSize() const { return mTargetHeapSize; }
|
||||
|
||||
u32 getRelUsedCount() const { return getUsedCount() - mUsedCount; }
|
||||
u32 getRelTotalUsedSize() const { return mHeap->getTotalUsedSize() - mTotalUsedSize; }
|
||||
|
||||
@@ -51,13 +55,15 @@ private:
|
||||
};
|
||||
|
||||
struct mDoMain {
|
||||
static char COPYDATE_STRING[18];
|
||||
static u32 memMargin;
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
static int argument;
|
||||
static int e3menu_no;
|
||||
static u32 archiveHeapSize;
|
||||
static u32 gameHeapSize;
|
||||
#endif
|
||||
static u8 mHeapBriefType;
|
||||
#endif
|
||||
|
||||
static char COPYDATE_STRING[18];
|
||||
static u32 memMargin;
|
||||
static OSTime sPowerOnTime;
|
||||
static OSTime sHungUpTime;
|
||||
static s8 developmentMode;
|
||||
|
||||
Reference in New Issue
Block a user