diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2025-10-19 10:30:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-19 20:30:49 +0300 |
| commit | 850fae1aa304f7703ef973cf2126f246048ca25d (patch) | |
| tree | f00b1bc2a000fd33dcc10ea08e2d57b8887fac70 /include/JSystem/JKernel | |
| parent | 31c0f94a1052de4cd5cc9c829d41c4389b3fc7b7 (diff) | |
m_Do_main / f_ap_game / f_op_actor debug work and misc (#2744)
* m_Do_main / f_ap_game debug stuff
* revolution sdk compatibility
* f_op_actor debug work
* rename fopAcM_SetupActor to fopAcM_ct
* fix build
* fix jp/pal splits
Diffstat (limited to 'include/JSystem/JKernel')
| -rw-r--r-- | include/JSystem/JKernel/JKRAram.h | 12 | ||||
| -rw-r--r-- | include/JSystem/JKernel/JKRAramArchive.h | 1 | ||||
| -rw-r--r-- | include/JSystem/JKernel/JKRAramHeap.h | 8 |
3 files changed, 16 insertions, 5 deletions
diff --git a/include/JSystem/JKernel/JKRAram.h b/include/JSystem/JKernel/JKRAram.h index ef935112ee..2d992749ce 100644 --- a/include/JSystem/JKernel/JKRAram.h +++ b/include/JSystem/JKernel/JKRAram.h @@ -89,6 +89,18 @@ inline JKRAramBlock *JKRMainRamToAram(u8 *buf, u32 bufSize, u32 alignedSize, JKR return JKRAram::mainRamToAram(buf, bufSize, alignedSize, expandSwitch, fileSize, heap, id, pSize); } +inline u32 JKRGetAramTotalFreeSize() { + return JKRAram::getAramHeap()->getTotalFreeSize(); +} + +inline u32 JKRGetAramFreeSize() { + return JKRAram::getAramHeap()->getFreeSize(); +} + +inline u32 JKRGetAramUsedSize(u8 param_0) { + return JKRAram::getAramHeap()->getUsedSize(param_0); +} + // void JKRDecompressFromAramToMainRam(u32, void*, u32, u32, u32, u32*); #endif /* JKRARAM_H */ diff --git a/include/JSystem/JKernel/JKRAramArchive.h b/include/JSystem/JKernel/JKRAramArchive.h index 2ea5f2863b..131dccbaa8 100644 --- a/include/JSystem/JKernel/JKRAramArchive.h +++ b/include/JSystem/JKernel/JKRAramArchive.h @@ -27,7 +27,6 @@ public: static u32 fetchResource_subroutine(u32, u32, u8*, u32, int); static u32 fetchResource_subroutine(u32, u32, JKRHeap*, int, u8**); -private: /* 0x00 */ // vtable /* 0x04 */ // JKRArchive /* 0x64 */ JKRAramBlock* mBlock; diff --git a/include/JSystem/JKernel/JKRAramHeap.h b/include/JSystem/JKernel/JKRAramHeap.h index 14f786a21f..3dd0bbd741 100644 --- a/include/JSystem/JKernel/JKRAramHeap.h +++ b/include/JSystem/JKernel/JKRAramHeap.h @@ -26,10 +26,10 @@ public: JKRAramBlock* alloc(u32, EAllocMode); JKRAramBlock* allocFromHead(u32); JKRAramBlock* allocFromTail(u32); - u32 getFreeSize(void); - u32 getTotalFreeSize(void); - // u32 getUsedSize(void); - void dump(void); + u32 getFreeSize(); + u32 getTotalFreeSize(); + u32 getUsedSize(u8); + void dump(); void free(JKRAramBlock *block) { delete block; } |
