mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-06 09:55:11 -04:00
Add heap imgui
This commit is contained in:
@@ -141,6 +141,10 @@ protected:
|
||||
/* 0x68 */ bool mErrorFlag;
|
||||
/* 0x69 */ bool mInitFlag;
|
||||
|
||||
#if TARGET_PC
|
||||
char mName[32];
|
||||
#endif
|
||||
|
||||
public:
|
||||
static bool initArena(char** memory, u32* size, int maxHeaps);
|
||||
static bool initArena2(char** memory, u32* size, int maxHeaps);
|
||||
@@ -209,6 +213,15 @@ public:
|
||||
#endif
|
||||
|
||||
static JKRErrorHandler mErrorHandler;
|
||||
|
||||
#if TARGET_PC
|
||||
void setName(const char* name);
|
||||
const char* getName() const;
|
||||
|
||||
#define JKRHEAP_NAME(heap, name) (heap)->setName(name)
|
||||
#else
|
||||
#define JKRHEAP_NAME(heap, name)
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifndef TARGET_PC
|
||||
|
||||
+12
-2
@@ -819,10 +819,20 @@ struct ProcName {
|
||||
};
|
||||
|
||||
#define X(name) { name, #name },
|
||||
inline ProcName procNames[] = {
|
||||
inline const ProcName procNames[] = {
|
||||
ALL_PROCS
|
||||
};
|
||||
#undef name
|
||||
#undef X
|
||||
|
||||
inline const char* GetProcName(unsigned int id) {
|
||||
for (auto procName : procNames) {
|
||||
if (procName.id == id) {
|
||||
return procName.name;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user