add wii usa rev0 support (#2505)

* wii usa rev0 dol building ok

* wii dol cleanup

* some wii tests

* most rels building
This commit is contained in:
TakaRikka
2025-06-27 03:14:58 -07:00
committed by GitHub
parent 028c07d47d
commit 79c56b2548
1525 changed files with 125994 additions and 807 deletions
+11 -2
View File
@@ -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; }