Decompile 018_StartUp overlay (#19)

* Decompile StartUp overlay (99%)

* jp delinks

* regression fix
This commit is contained in:
Yanis
2026-01-13 15:04:52 +01:00
committed by GitHub
parent 1713ffc43b
commit 76c1ec9acf
53 changed files with 2058 additions and 446 deletions
+10 -9
View File
@@ -2,6 +2,8 @@
#include "System/SysFault.hpp"
#include "global.h"
#pragma dont_reuse_strings off
extern "C" {
void *func_02001654(void);
void *func_020145b0(UnkId *, s32);
@@ -72,7 +74,7 @@ ARM void *func_02011f30(s32 length) {
}
// non-matching
ARM void *SysObject::operator new(unsigned long length, u32 id, u32 idLength) {
ARM void *operator new(unsigned long length, u32 id, u32 idLength) {
void *pvVar1;
char *uVar2;
u16 line;
@@ -85,16 +87,11 @@ ARM void *SysObject::operator new(unsigned long length, u32 id, u32 idLength) {
if (pvVar1 == NULL) {
if (id == 1) {
func_020011f4(pUVar5);
uVar2 = data_0204372c[id];
uVar4 = "%sノメモリガタリマセン.\nサイズ=%d\nノコリ =%d";
line = 183;
data_02049984.func_020125a4(__FILE__, 183, "%sノメモリガタリマセン.\nサイズ=%d\nノコリ =%d", data_0204372c[id],
length);
} else if (id == 0) {
uVar2 = data_0204372c[id];
uVar4 = "%sノメモリガタリマセン.\nサイズ=%d";
line = 187;
data_02049984.func_020125a4(__FILE__, 187, "%sノメモリガタリマセン.\nサイズ=%d", data_0204372c[id], length);
}
data_02049984.func_020125a4(__FILE__, line, uVar4, uVar2, length);
}
return pvVar1;
@@ -107,3 +104,7 @@ ARM void SysObject::operator delete(void *ptr) {
ARM void SysObject::operator delete[](void *ptr) {
SysDelete(ptr);
}
void dummy() {
::operator new(1, 1);
}