diff --git a/include/JSystem/JKernel/JKRDisposer.h b/include/JSystem/JKernel/JKRDisposer/JKRDisposer.h similarity index 84% rename from include/JSystem/JKernel/JKRDisposer.h rename to include/JSystem/JKernel/JKRDisposer/JKRDisposer.h index dd7f32aecf..f272e75136 100644 --- a/include/JSystem/JKernel/JKRDisposer.h +++ b/include/JSystem/JKernel/JKRDisposer/JKRDisposer.h @@ -2,7 +2,7 @@ #define __JKRDISPOSER_H__ #include "dolphin/types.h" -#include "JSystem/JSupport/JSUList.h" +#include "JSystem/JSupport/JSUList/JSUList.h" class JKRHeap; class JKRDisposer { diff --git a/include/JSystem/JKernel/asm/func_802D14E4.s b/include/JSystem/JKernel/JKRDisposer/asm/func_802D14E4.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802D14E4.s rename to include/JSystem/JKernel/JKRDisposer/asm/func_802D14E4.s diff --git a/include/JSystem/JKernel/JKRExpHeap/JKRExpHeap.h b/include/JSystem/JKernel/JKRExpHeap/JKRExpHeap.h new file mode 100644 index 0000000000..f9b7c24a7e --- /dev/null +++ b/include/JSystem/JKernel/JKRExpHeap/JKRExpHeap.h @@ -0,0 +1,5 @@ +class JKRExpHeap { + public: + s32 getTotalUsedSize() const; + +}; \ No newline at end of file diff --git a/include/JSystem/JKernel/JKRHeap.h b/include/JSystem/JKernel/JKRHeap/JKRHeap.h similarity index 96% rename from include/JSystem/JKernel/JKRHeap.h rename to include/JSystem/JKernel/JKRHeap/JKRHeap.h index f03176d2c4..3658a02c35 100644 --- a/include/JSystem/JKernel/JKRHeap.h +++ b/include/JSystem/JKernel/JKRHeap/JKRHeap.h @@ -1,6 +1,6 @@ #include "dolphin/types.h" -#include "JSystem/JKernel/JKRDisposer.h" +#include "JSystem/JKernel/JKRDisposer/JKRDisposer.h" typedef void (*JKRErrorHandler)(void*, unsigned long, int); class JKRHeap : JKRDisposer { @@ -29,7 +29,7 @@ class JKRHeap : JKRDisposer { static s32 getSize(void* ptr, JKRHeap* heap); s32 getSize(void* ptr); - u32 getFreeSize(); + s32 getFreeSize(); u32 getMaxFreeBlock(); u32 getTotalFreeSize(); u8 changeGroupID(u8 param_1); diff --git a/include/JSystem/JKernel/asm/func_802CE138.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE138.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE138.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE138.s diff --git a/include/JSystem/JKernel/asm/func_802CE264.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE264.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE264.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE264.s diff --git a/include/JSystem/JKernel/asm/func_802CE378.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE378.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE378.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE378.s diff --git a/include/JSystem/JKernel/asm/func_802CE428.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE428.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE428.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE428.s diff --git a/include/JSystem/JKernel/asm/func_802CE438.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE438.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE438.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE438.s diff --git a/include/JSystem/JKernel/asm/func_802CE448.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE448.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE448.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE448.s diff --git a/include/JSystem/JKernel/asm/func_802CE474.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE474.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE474.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE474.s diff --git a/include/JSystem/JKernel/asm/func_802CE4D4.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE4D4.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE4D4.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE4D4.s diff --git a/include/JSystem/JKernel/asm/func_802CE500.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE500.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE500.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE500.s diff --git a/include/JSystem/JKernel/asm/func_802CE548.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE548.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE548.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE548.s diff --git a/include/JSystem/JKernel/asm/func_802CE574.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE574.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE574.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE574.s diff --git a/include/JSystem/JKernel/asm/func_802CE5CC.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE5CC.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE5CC.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE5CC.s diff --git a/include/JSystem/JKernel/asm/func_802CE5F8.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE5F8.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE5F8.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE5F8.s diff --git a/include/JSystem/JKernel/asm/func_802CE624.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE624.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE624.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE624.s diff --git a/include/JSystem/JKernel/asm/func_802CE684.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE684.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE684.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE684.s diff --git a/include/JSystem/JKernel/asm/func_802CE6B0.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE6B0.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE6B0.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE6B0.s diff --git a/include/JSystem/JKernel/asm/func_802CE700.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE700.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE700.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE700.s diff --git a/include/JSystem/JKernel/asm/func_802CE72C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE72C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE72C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE72C.s diff --git a/include/JSystem/JKernel/asm/func_802CE758.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE758.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE758.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE758.s diff --git a/include/JSystem/JKernel/asm/func_802CE784.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE784.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE784.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE784.s diff --git a/include/JSystem/JKernel/asm/func_802CE7B0.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE7B0.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE7B0.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE7B0.s diff --git a/include/JSystem/JKernel/asm/func_802CE7DC.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE7DC.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE7DC.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE7DC.s diff --git a/include/JSystem/JKernel/asm/func_802CE83C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE83C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE83C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE83C.s diff --git a/include/JSystem/JKernel/asm/func_802CE894.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE894.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE894.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE894.s diff --git a/include/JSystem/JKernel/asm/func_802CE93C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE93C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE93C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE93C.s diff --git a/include/JSystem/JKernel/asm/func_802CE9E4.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CE9E4.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CE9E4.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CE9E4.s diff --git a/include/JSystem/JKernel/asm/func_802CEA78.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEA78.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEA78.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEA78.s diff --git a/include/JSystem/JKernel/asm/func_802CEAA0.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEAA0.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEAA0.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEAA0.s diff --git a/include/JSystem/JKernel/asm/func_802CEAC0.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEAC0.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEAC0.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEAC0.s diff --git a/include/JSystem/JKernel/asm/func_802CEB18.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEB18.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEB18.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEB18.s diff --git a/include/JSystem/JKernel/asm/func_802CEB40.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEB40.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEB40.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEB40.s diff --git a/include/JSystem/JKernel/asm/func_802CEB78.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEB78.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEB78.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEB78.s diff --git a/include/JSystem/JKernel/asm/func_802CEB88.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEB88.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEB88.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEB88.s diff --git a/include/JSystem/JKernel/asm/func_802CEBA8.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEBA8.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEBA8.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEBA8.s diff --git a/include/JSystem/JKernel/asm/func_802CEC4C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEC4C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEC4C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEC4C.s diff --git a/include/JSystem/JKernel/asm/func_802CEC74.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEC74.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEC74.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEC74.s diff --git a/include/JSystem/JKernel/asm/func_802CEC98.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CEC98.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CEC98.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CEC98.s diff --git a/include/JSystem/JKernel/asm/func_802CECC4.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CECC4.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CECC4.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CECC4.s diff --git a/include/JSystem/JKernel/asm/func_802CECEC.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CECEC.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CECEC.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CECEC.s diff --git a/include/JSystem/JKernel/asm/func_802CED10.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CED10.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CED10.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CED10.s diff --git a/include/JSystem/JKernel/asm/func_802CED3C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CED3C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CED3C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CED3C.s diff --git a/include/JSystem/JKernel/asm/func_802CED60.s b/include/JSystem/JKernel/JKRHeap/asm/func_802CED60.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802CED60.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802CED60.s diff --git a/include/JSystem/JKernel/asm/func_802D147C.s b/include/JSystem/JKernel/JKRHeap/asm/func_802D147C.s similarity index 100% rename from include/JSystem/JKernel/asm/func_802D147C.s rename to include/JSystem/JKernel/JKRHeap/asm/func_802D147C.s diff --git a/include/JSystem/JSupport/JSUList.h b/include/JSystem/JSupport/JSUList/JSUList.h similarity index 100% rename from include/JSystem/JSupport/JSUList.h rename to include/JSystem/JSupport/JSUList/JSUList.h diff --git a/include/JSystem/JSupport/asm/func_802DBDFC.s b/include/JSystem/JSupport/JSUList/asm/func_802DBDFC.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBDFC.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBDFC.s diff --git a/include/JSystem/JSupport/asm/func_802DBE14.s b/include/JSystem/JSupport/JSUList/asm/func_802DBE14.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBE14.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBE14.s diff --git a/include/JSystem/JSupport/asm/func_802DBE74.s b/include/JSystem/JSupport/JSUList/asm/func_802DBE74.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBE74.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBE74.s diff --git a/include/JSystem/JSupport/asm/func_802DBEAC.s b/include/JSystem/JSupport/JSUList/asm/func_802DBEAC.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBEAC.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBEAC.s diff --git a/include/JSystem/JSupport/asm/func_802DBF14.s b/include/JSystem/JSupport/JSUList/asm/func_802DBF14.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBF14.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBF14.s diff --git a/include/JSystem/JSupport/asm/func_802DBF28.s b/include/JSystem/JSupport/JSUList/asm/func_802DBF28.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBF28.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBF28.s diff --git a/include/JSystem/JSupport/asm/func_802DBF4C.s b/include/JSystem/JSupport/JSUList/asm/func_802DBF4C.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBF4C.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBF4C.s diff --git a/include/JSystem/JSupport/asm/func_802DBFF0.s b/include/JSystem/JSupport/JSUList/asm/func_802DBFF0.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DBFF0.s rename to include/JSystem/JSupport/JSUList/asm/func_802DBFF0.s diff --git a/include/JSystem/JSupport/asm/func_802DC094.s b/include/JSystem/JSupport/JSUList/asm/func_802DC094.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DC094.s rename to include/JSystem/JSupport/JSUList/asm/func_802DC094.s diff --git a/include/JSystem/JSupport/asm/func_802DC15C.s b/include/JSystem/JSupport/JSUList/asm/func_802DC15C.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DC15C.s rename to include/JSystem/JSupport/JSUList/asm/func_802DC15C.s diff --git a/include/JSystem/JSupport/asm/func_802DC20C.s b/include/JSystem/JSupport/JSUList/asm/func_802DC20C.s similarity index 100% rename from include/JSystem/JSupport/asm/func_802DC20C.s rename to include/JSystem/JSupport/JSUList/asm/func_802DC20C.s diff --git a/include/m_Do/m_Do_main/m_Do_main.h b/include/m_Do/m_Do_main/m_Do_main.h index b78c776ecb..aabf1d2ce9 100644 --- a/include/m_Do/m_Do_main/m_Do_main.h +++ b/include/m_Do/m_Do_main/m_Do_main.h @@ -1,15 +1,6 @@ #include "dolphin/types.h" - -class JKRExpHeap { - public: - s32 getTotalUsedSize() const; - -}; - -class JKRHeap { - public: - s32 getFreeSize(); -}; +#include "JSystem/JKernel/JKRHeap/JKRHeap.h" +#include "JSystem/JKernel/JKRExpHeap/JKRExpHeap.h" class HeapCheck { public: diff --git a/libs/JSystem/JKernel/JKRDisposer.cpp b/libs/JSystem/JKernel/JKRDisposer.cpp index de4a00b5c3..bd5223fd17 100644 --- a/libs/JSystem/JKernel/JKRDisposer.cpp +++ b/libs/JSystem/JKernel/JKRDisposer.cpp @@ -1,6 +1,6 @@ -#include "JSystem/JKernel/JKRDisposer.h" +#include "JSystem/JKernel/JKRDisposer/JKRDisposer.h" #include "global.h" -#include "JSystem/JKernel/JKRHeap.h" +#include "JSystem/JKernel/JKRHeap/JKRHeap.h" // #include "JSystem/JKernel/asm/func_802D147C.s" JKRDisposer::JKRDisposer() : __vt(lbl_803CC0F0), ptr_link(this) { @@ -22,6 +22,6 @@ JKRDisposer::~JKRDisposer() { #else asm JKRDisposer::~JKRDisposer() { nofralloc -#include "JSystem/JKernel/asm/func_802D14E4.s" +#include "JSystem/JKernel/JKRDisposer/asm/func_802D14E4.s" } #endif diff --git a/libs/JSystem/JKernel/JKRHeap.cpp b/libs/JSystem/JKernel/JKRHeap.cpp index 3df4803695..3e552be13b 100644 --- a/libs/JSystem/JKernel/JKRHeap.cpp +++ b/libs/JSystem/JKernel/JKRHeap.cpp @@ -1,4 +1,4 @@ -#include "JSystem/JKernel/JKRHeap.h" +#include "JSystem/JKernel/JKRHeap/JKRHeap.h" #include "global.h" #ifdef NONMATCHING @@ -7,211 +7,211 @@ JKRHeap::JKRHeap(void* data, u32 size, JKRHeap* parent, bool error_handler) { #else asm JKRHeap::JKRHeap(void* data, u32 size, JKRHeap* parent, bool error_handler) { nofralloc -#include "JSystem/JKernel/asm/func_802CE138.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE138.s" } #endif asm JKRHeap::~JKRHeap() { nofralloc -#include "JSystem/JKernel/asm/func_802CE264.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE264.s" } asm bool JKRHeap::initArena(char**, u32*, int) { nofralloc -#include "JSystem/JKernel/asm/func_802CE378.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE378.s" } asm void JKRHeap::becomeSystemHeap() { nofralloc -#include "JSystem/JKernel/asm/func_802CE428.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE428.s" } asm void JKRHeap::becomeCurrentHeap() { nofralloc -#include "JSystem/JKernel/asm/func_802CE438.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE438.s" } asm void JKRHeap::destroy() { nofralloc -#include "JSystem/JKernel/asm/func_802CE448.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE448.s" } asm void* JKRHeap::alloc(u32 size, int alignment, JKRHeap* heap) { nofralloc -#include "JSystem/JKernel/asm/func_802CE474.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE474.s" } asm void* JKRHeap::alloc(u32 size, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CE4D4.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE4D4.s" } asm void JKRHeap::free(void* ptr, JKRHeap* heap) { nofralloc -#include "JSystem/JKernel/asm/func_802CE500.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE500.s" } asm void JKRHeap::free(void* ptr) { nofralloc -#include "JSystem/JKernel/asm/func_802CE548.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE548.s" } asm void JKRHeap::callAllDisposer() { nofralloc -#include "JSystem/JKernel/asm/func_802CE574.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE574.s" } asm void JKRHeap::freeAll() { nofralloc -#include "JSystem/JKernel/asm/func_802CE5CC.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE5CC.s" } asm void JKRHeap::freeTail() { nofralloc -#include "JSystem/JKernel/asm/func_802CE5F8.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE5F8.s" } asm s32 JKRHeap::resize(void* ptr, u32 size, JKRHeap* heap) { nofralloc -#include "JSystem/JKernel/asm/func_802CE624.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE624.s" } asm s32 JKRHeap::resize(void* ptr, u32 size) { nofralloc -#include "JSystem/JKernel/asm/func_802CE684.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE684.s" } asm s32 JKRHeap::getSize(void* ptr, JKRHeap* heap) { nofralloc -#include "JSystem/JKernel/asm/func_802CE6B0.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE6B0.s" } asm s32 JKRHeap::getSize(void* ptr) { nofralloc -#include "JSystem/JKernel/asm/func_802CE700.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE700.s" } -asm u32 JKRHeap::getFreeSize() { +asm s32 JKRHeap::getFreeSize() { nofralloc -#include "JSystem/JKernel/asm/func_802CE72C.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE72C.s" } asm u32 JKRHeap::getMaxFreeBlock() { nofralloc -#include "JSystem/JKernel/asm/func_802CE758.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE758.s" } asm u32 JKRHeap::getTotalFreeSize() { nofralloc -#include "JSystem/JKernel/asm/func_802CE784.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE784.s" } asm u8 JKRHeap::changeGroupID(u8 param_1) { nofralloc -#include "JSystem/JKernel/asm/func_802CE7B0.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE7B0.s" } asm u32 JKRHeap::getMaxAllocatableSize(int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CE7DC.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE7DC.s" } asm JKRHeap* JKRHeap::findFromRoot(void* ptr) { nofralloc -#include "JSystem/JKernel/asm/func_802CE83C.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE83C.s" } asm JKRHeap* JKRHeap::find(void* ptr) const { nofralloc -#include "JSystem/JKernel/asm/func_802CE894.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE894.s" } asm JKRHeap* JKRHeap::findAllHeap(void* ptr) const { nofralloc -#include "JSystem/JKernel/asm/func_802CE93C.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE93C.s" } asm void JKRHeap::dispose_subroutine(u32 begin, u32 end) { nofralloc -#include "JSystem/JKernel/asm/func_802CE9E4.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CE9E4.s" } asm void JKRHeap::dispose(void* ptr, u32 size) { nofralloc -#include "JSystem/JKernel/asm/func_802CEA78.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEA78.s" } asm void JKRHeap::dispose(void* begin, void* end) { nofralloc -#include "JSystem/JKernel/asm/func_802CEAA0.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEAA0.s" } asm void JKRHeap::dispose() { nofralloc -#include "JSystem/JKernel/asm/func_802CEAC0.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEAC0.s" } asm void JKRHeap::copyMemory(void* dst, void* src, u32 size) { nofralloc -#include "JSystem/JKernel/asm/func_802CEB18.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEB18.s" } asm void JKRHeap::JKRDefaultMemoryErrorRoutine(JKRHeap* heap, u32 size, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CEB40.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEB40.s" } asm bool JKRHeap::setErrorFlag(bool param_1) { nofralloc -#include "JSystem/JKernel/asm/func_802CEB78.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEB78.s" } asm JKRErrorHandler JKRHeap::setErrorHandler(JKRErrorHandler param_1) { nofralloc -#include "JSystem/JKernel/asm/func_802CEB88.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEB88.s" } asm bool JKRHeap::isSubHeap(JKRHeap* heap) const { nofralloc -#include "JSystem/JKernel/asm/func_802CEBA8.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEBA8.s" } asm void* operator new(u32 size) { nofralloc -#include "JSystem/JKernel/asm/func_802CEC4C.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEC4C.s" } asm void* operator new(u32 size, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CEC74.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEC74.s" } asm void* operator new(u32 size, JKRHeap* heap, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CEC98.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CEC98.s" } asm void* operator new[](u32 size) { nofralloc -#include "JSystem/JKernel/asm/func_802CECC4.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CECC4.s" } asm void* operator new[](u32 size, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CECEC.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CECEC.s" } asm void* operator new[](u32 size, JKRHeap* heap, int alignment) { nofralloc -#include "JSystem/JKernel/asm/func_802CED10.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CED10.s" } asm void operator delete(void* ptr) { nofralloc -#include "JSystem/JKernel/asm/func_802CED3C.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CED3C.s" } asm void operator delete[](void* ptr) { nofralloc -#include "JSystem/JKernel/asm/func_802CED60.s" +#include "JSystem/JKernel/JKRHeap/asm/func_802CED60.s" } diff --git a/libs/JSystem/JSupport/JSUList.cpp b/libs/JSystem/JSupport/JSUList.cpp index eebb1fdfb6..99922822e4 100644 --- a/libs/JSystem/JSupport/JSUList.cpp +++ b/libs/JSystem/JSupport/JSUList.cpp @@ -1,4 +1,4 @@ -#include "JSystem/JSupport/JSUList.h" +#include "JSystem/JSupport/JSUList/JSUList.h" #include "global.h" // #include "JSupport/asm/func_802DBDFC.s"