Revert "Isolate JKRHeap operator overloads" (#39)

This commit is contained in:
TakaRikka
2026-03-06 19:49:35 -08:00
committed by GitHub
parent b7c482fb87
commit 78d4169929
630 changed files with 3349 additions and 3452 deletions
+5 -5
View File
@@ -71,7 +71,7 @@ s32 dScnName_c::create() {
field_0x1d0 = (JKRExpHeap*)mDoExt_setCurrentHeap(mHeap);
dRes_info_c* res = dComIfG_getObjectResInfo("fileSel");
dFs_c = JKR_NEW dFile_select_c(res->getArchive());
dFs_c = new dFile_select_c(res->getArchive());
#if VERSION == VERSION_GCN_PAL
for (int i = 0; i < 5; i++);
@@ -84,7 +84,7 @@ s32 dScnName_c::create() {
dComIfGs_setNoFile(0);
}
mBrightCheck = JKR_NEW dBrightCheck_c(res->getArchive());
mBrightCheck = new dBrightCheck_c(res->getArchive());
field_0x420 = 0;
g_snHIO.field_0x4 = -1;
@@ -191,8 +191,8 @@ s32 dScnName_c::draw() {
}
dScnName_c::~dScnName_c() {
JKR_DELETE(dFs_c);
JKR_DELETE(mBrightCheck);
delete dFs_c;
delete mBrightCheck;
dComIfG_deleteObjectResMain("fileSel");
mHeap->destroy();
@@ -318,7 +318,7 @@ static int dScnName_Delete(dScnName_c* i_this) {
}
static int dScnName_Create(scene_class* i_this) {
JKR_NEW_ARGS (i_this) dScnName_c();
new (i_this) dScnName_c();
return static_cast<dScnName_c*>(i_this)->create();
}