Add heap imgui

This commit is contained in:
PJB3005
2026-03-01 22:23:30 +01:00
parent 891a80b87c
commit d83267098e
18 changed files with 206 additions and 18 deletions
+13
View File
@@ -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
View File
@@ -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