Decompile MainSelect overlay (#8)

* Decompile MainSelect overlay (~90%)

* cleanup

* jp delinks

* fixed build and linking errors
This commit is contained in:
Yanis
2026-01-11 01:31:08 +01:00
committed by GitHub
parent 8adcd6e88a
commit 1713ffc43b
226 changed files with 14537 additions and 6508 deletions
+30 -7
View File
@@ -1,5 +1,6 @@
#pragma once
#include "global.h"
#include "types.h"
typedef u32 UnkId;
@@ -10,21 +11,43 @@ enum __UnkId {
UnkId_UNSH = 'UNSH',
};
struct UnkStruct_02011e10 {
/* 00 */ UnkId mId;
/* 04 */ unk8 mUnk_04[0x28];
/* 2C */
typedef u32 HeapIndex;
enum HeapIndex_ {
HeapIndex_0 = 0,
HeapIndex_1 = 1,
HeapIndex_2 = 2,
HeapIndex_3 = 3,
HeapIndex_Max = 4
};
void *SysNew(UnkStruct_02011e10 *param1, s32 length, s32 param3);
class UnkStruct_02011e10_Sub1 {
public:
/* 00 */ UnkId mId;
/* 04 */ unk8 mUnk_04[0x28];
/* 2C */ unk8 mUnk_2C[0x60 - 0x2C];
};
class UnkStruct_02011e10 {
public:
/* 00 */ UnkStruct_02011e10_Sub1 *mUnk_00[HeapIndex_Max];
/* 10 */ STRUCT_PAD(0x10, 0x60);
/* 60 */ unk32 mUnk_60;
void func_02013014();
void func_02013070();
};
extern UnkStruct_02011e10 data_0204999c;
void *SysNew(UnkStruct_02011e10_Sub1 *param1, s32 length, s32 param3);
void SysDelete(void *ptr);
void *func_02011f10(s32 length);
void *func_02011f30(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 new(unsigned long length, u32 id, u32 idLength = 4);
static void *operator new[](unsigned long length, u32 *id, u32 idLength = 4);
static void operator delete(void *ptr);
static void operator delete[](void *ptr);
};