summaryrefslogtreecommitdiff
path: root/include/System
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-01-18 09:44:01 +0100
committerAetias <aetias@outlook.com>2025-01-18 09:44:01 +0100
commit13108e3ae4e95a4a9a547a3074852099d299a6b9 (patch)
tree21f3ce5b19514780bad5c1451718b4367f6fa47c /include/System
parent48bbd8bb7f008ac913cabb6f7faf4a47ad86878b (diff)
Move ARM9 Main documentation from Ghidra
Diffstat (limited to 'include/System')
-rw-r--r--include/System/OverlayManager.hpp5
-rw-r--r--include/System/SysNew.hpp13
2 files changed, 17 insertions, 1 deletions
diff --git a/include/System/OverlayManager.hpp b/include/System/OverlayManager.hpp
index 4ac727a1..636208fc 100644
--- a/include/System/OverlayManager.hpp
+++ b/include/System/OverlayManager.hpp
@@ -92,9 +92,12 @@ class OverlayManager {
public:
OverlayId mLoadedOverlays[OverlayIndex_COUNT];
- void Unload(OverlayIndex index);
void Load(OverlayIndex index, OverlayId id);
void LoadIfNotLoaded(OverlayIndex index, OverlayId id);
+ void Unload(OverlayIndex index);
+ void LoadOverlaySetup(s32 index);
+ void UnloadOverlaySetup();
+
void LoadEquipItem(ItemFlag equipId);
};
diff --git a/include/System/SysNew.hpp b/include/System/SysNew.hpp
index 78f3b290..7e9b0cd8 100644
--- a/include/System/SysNew.hpp
+++ b/include/System/SysNew.hpp
@@ -2,8 +2,21 @@
#include "types.h"
+struct UnkStruct_0202e894 {
+ /* 00 */ u32 mId;
+ /* 04 */ unk8 mUnk_04[0x28];
+ /* 2c */
+};
+
+void *SysNew(UnkStruct_0202e894 *param1, s32 length, s32 param3);
+void SysDelete(void *ptr);
+void *func_0202e99c(s32 length);
+void *func_0202e9bc(s32 length);
+
class SysObject {
public:
static void *operator new(unsigned long length, u32 *id, u32 idLength);
+ static void *operator new[](unsigned long length, u32 *id, u32 idLength);
static void operator delete(void *ptr);
+ static void operator delete[](void *ptr);
};