mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-03 00:16:36 -04:00
Revert "Isolate JKRHeap operator overloads" (#39)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user