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
+6 -6
View File
@@ -233,7 +233,7 @@ void daPy_anmHeap_c::initData() {
}
void* daPy_anmHeap_c::mallocBuffer() {
mBuffer = JKR_NEW_ARGS (0x20) u8[mBufferSize];
mBuffer = new (0x20) u8[mBufferSize];
return mBuffer;
}
@@ -262,19 +262,19 @@ void daPy_anmHeap_c::createHeap(daPy_anmHeap_c::daAlinkHEAP_TYPE i_heapType) {
mAnimeHeap = mDoExt_createSolidHeapFromGameToCurrent(&tmp, size, 0x20);
if (i_heapType == 4) {
tmpWork = JKR_NEW char[size];
tmpWork = new char[size];
JUT_ASSERT(669, tmpWork != NULL);
} else if (i_heapType == 3) {
tmpTransBas = JKR_NEW mDoExt_transAnmBas(NULL);
tmpTransBas = new mDoExt_transAnmBas(NULL);
JUT_ASSERT(672, tmpTransBas != NULL);
} else if (i_heapType == 0) {
tmpTrans = JKR_NEW J3DAnmTransformKey();
tmpTrans = new J3DAnmTransformKey();
JUT_ASSERT(675, tmpTrans != NULL);
} else if (i_heapType == 1) {
tmpTp = JKR_NEW J3DAnmTexPattern();
tmpTp = new J3DAnmTexPattern();
JUT_ASSERT(678, tmpTp != NULL);
} else {
tmpTk = JKR_NEW J3DAnmTextureSRTKey();
tmpTk = new J3DAnmTextureSRTKey();
JUT_ASSERT(681, tmpTk != NULL);
}