summaryrefslogtreecommitdiff
path: root/include/JSystem
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-06-27 03:14:58 -0700
committerGitHub <noreply@github.com>2025-06-27 13:14:58 +0300
commit79c56b254885b006f0fdec184b0ba06fbd3746a3 (patch)
tree3b10ab9144abba0e644d026bcc12c0cf5d3efcb3 /include/JSystem
parent028c07d47d41b10ba8fbef0ef4240751db74776f (diff)
add wii usa rev0 support (#2505)
* wii usa rev0 dol building ok * wii dol cleanup * some wii tests * most rels building
Diffstat (limited to 'include/JSystem')
-rw-r--r--include/JSystem/JKernel/JKRHeap.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/JSystem/JKernel/JKRHeap.h b/include/JSystem/JKernel/JKRHeap.h
index ac66a84ec1..6dcd20d389 100644
--- a/include/JSystem/JKernel/JKRHeap.h
+++ b/include/JSystem/JKernel/JKRHeap.h
@@ -3,6 +3,7 @@
#include "JSystem/JKernel/JKRDisposer.h"
#include <dolphin/os.h>
+#include "global.h"
class JKRHeap;
typedef void (*JKRErrorHandler)(void*, u32, int);
@@ -149,7 +150,8 @@ public:
static void* getUserRamEnd(void) { return mUserRamEnd; }
static u32 getMemorySize(void) { return mMemorySize; }
static JKRHeap* getRootHeap() { return sRootHeap; }
-#ifdef DEBUG
+
+#if PLATFORM_WII || PLATFORM_SHIELD
static JKRHeap* getRootHeap2() { return sRootHeap2; }
#endif
@@ -173,7 +175,8 @@ public:
static u32 mMemorySize;
static JKRHeap* sRootHeap;
-#ifdef DEBUG
+
+#if PLATFORM_WII || PLATFORM_SHIELD
static JKRHeap* sRootHeap2;
#endif
@@ -250,6 +253,12 @@ inline JKRHeap* JKRGetRootHeap() {
return JKRHeap::getRootHeap();
}
+#if PLATFORM_WII || PLATFORM_SHIELD
+inline JKRHeap* JKRGetRootHeap2() {
+ return JKRHeap::getRootHeap2();
+}
+#endif
+
#ifdef DEBUG
inline void JKRSetDebugFillNotuse(u8 status) { data_804508B1 = status; }
inline void JKRSetDebugFillNew(u8 status) { data_804508B2 = status; }