HEAP_SIZE macro

This commit is contained in:
madeline
2026-03-08 21:13:45 -07:00
parent 783566c8b6
commit d35381a60e
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#ifndef DUSK_MEMORY_H
#define DUSK_MEMORY_H
#if TARGET_PC
#define HEAP_SIZE(original, dusk) (dusk)
#else
#define HEAP_SIZE(original, dusk) (original)
#endif
#endif
+2 -1
View File
@@ -16,6 +16,7 @@
#include "m_Do/m_Do_mtx.h"
#include "m_Do/m_Do_main.h"
#include "f_op/f_op_overlap_mng.h"
#include "dusk/memory.h"
static dSn_HIO_c g_snHIO;
@@ -68,7 +69,7 @@ static s32 resLoad(request_of_phase_process_class* i_phase, char* i_resName) {
s32 dScnName_c::create() {
int phase_state = resLoad(&phase, "fileSel");
if (phase_state == cPhs_COMPLEATE_e) {
mHeap = JKRCreateExpHeap(0x180000, mDoExt_getGameHeap(), false);
mHeap = JKRCreateExpHeap(HEAP_SIZE(0x180000, 0x1C0000), mDoExt_getGameHeap(), false);
JUT_ASSERT(289, mHeap != NULL);
field_0x1d0 = (JKRExpHeap*)mDoExt_setCurrentHeap(mHeap);