Decompile overlay 1 (Part 4) (#97)

* UnkStruct_027e095c_001 OK

* UnkStruct_027e095c_001 OK (JP)

* SysNew_001 OK

* SaveManager_001 98%

* UnkStruct_027e09bc_001 OK

* MapObjectManager_001 OK

* ActorManager_001 OK

* remove useless thumb pragmas

* ItemManager_001 OK

* fix regressions

* fix build issues
This commit is contained in:
Yanis
2026-07-02 20:56:08 +02:00
committed by GitHub
parent 66eb66f081
commit f0dfb70749
73 changed files with 1223 additions and 440 deletions
+57
View File
@@ -0,0 +1,57 @@
#include "System/SysNew.hpp"
#include "Unknown/UnkStruct_027e09a4.hpp"
extern "C" UnkStruct_02011e10_Sub1 *func_02001098(void *, size_t, unk32);
extern "C" UnkStruct_02011e10_Sub1 *func_020012e0(void *, size_t, unk32);
extern "C" void func_020010b8(void *);
extern "C" void func_02001300(void *);
extern "C" unk32 func_020013ac(void *param1);
extern "C" size_t func_020010e0(UnkStruct_02011e10_Sub1 *heapID, void *pFile, unk32 param3);
void UnkStruct_02011e10::func_ov001_020ba588(unk32 param1, unk32 param2) {
this->mUnk_2C.func_020144cc(param1, param2, 0x01);
this->mUnk_00[HeapIndex_2] = this->mUnk_2C.mUnk_00;
}
void UnkStruct_02011e10::func_ov001_020ba59c() {
this->mUnk_2C.func_02014538();
this->mUnk_00[HeapIndex_2] = NULL;
}
void UnkStruct_02011e10::func_ov001_020ba5ac(unk32 param1, unk32 param2) {
this->mUnk_44.func_020144cc(param1, param2, 0x01);
this->mUnk_00[HeapIndex_ITCM] = this->mUnk_44.mUnk_00;
}
void UnkStruct_02011e10::func_ov001_020ba5c0() {
this->mUnk_44.func_02014538();
this->mUnk_00[HeapIndex_ITCM] = NULL;
}
void UnkStruct_02011e10::func_ov001_020ba5d0() {
size_t size = data_027e09a4->mUnk_60 == 2 ? 0xBB800 : 0x6A400;
this->mUnk_64 = ::operator new(size, HeapIndex_1);
this->mUnk_00[HeapIndex_DTCM] = func_02001098(this->mUnk_64, size, 0x02);
}
void UnkStruct_02011e10::func_ov001_020ba608() {
func_020010b8(this->mUnk_00[HeapIndex_DTCM]);
DELETE(this->mUnk_64);
this->mUnk_00[HeapIndex_DTCM] = NULL;
}
void UnkStruct_02011e10::func_ov001_020ba620() {
size_t size = 0x40000;
this->mUnk_68 = ::operator new(size, HeapIndex_1);
this->mUnk_00[HeapIndex_5] = func_020012e0(this->mUnk_68, size, 0x02);
}
void UnkStruct_02011e10::func_ov001_020ba640() {
func_020010e0(this->mUnk_00[HeapIndex_1], this->mUnk_68, func_020013ac(this->mUnk_00[HeapIndex_5]));
}
void UnkStruct_02011e10::func_ov001_020ba658() {
func_02001300(this->mUnk_00[HeapIndex_5]);
this->mUnk_00[HeapIndex_5] = NULL;
DELETE(this->mUnk_68);
}