mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 05:28:43 -04:00
Fix "[NEW] JKRHeap (d_a_bg Anms) FULL! Fallback to malloc for size XXX" errors/warnings
This commit is contained in:
+1
-7
@@ -393,13 +393,7 @@ static void dummy1(dStage_roomControl_c* roomControl) {
|
||||
|
||||
JKRExpHeap* dStage_roomControl_c::createMemoryBlock(int i_blockIdx, u32 i_heapSize) {
|
||||
#if TARGET_PC
|
||||
// Cave of Ordeals crashes around floor 29 due to no free heap space
|
||||
// Increasing the size here avoids that, though its ugly. maybe TODO a better fix
|
||||
if (strcmp(dComIfGp_getStartStageName(), "D_SB01") == 0) {
|
||||
u32 prev = i_heapSize;
|
||||
i_heapSize *= 2;
|
||||
DuskLog.warn("Doubling heap size for D_SB01... ({}) -> ({})", prev, i_heapSize);
|
||||
}
|
||||
i_heapSize *= 2;
|
||||
#endif
|
||||
|
||||
if (mMemoryBlock[i_blockIdx] == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user