mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Allocate from heaps downward by default.
This commit is contained in:
parent
4b2dccd367
commit
9a9c4cbea6
@ -153,8 +153,9 @@ int sceHeapAllocHeapMemory(u32 heapAddr, u32 memSize) {
|
||||
Heap *heap = heapList[heapAddr];
|
||||
if (!heap)
|
||||
return SCE_KERNEL_ERROR_INVALID_ID;
|
||||
u32 addr = heap->alloc.Alloc(memSize, heap->fromtop);
|
||||
DEBUG_LOG(HLE,"sceHeapAllocHeapMemory(%08x, %08x)", heapAddr, memSize);
|
||||
// Always goes down, regardless of whether the heap is high or low.
|
||||
u32 addr = heap->alloc.Alloc(memSize, true);
|
||||
DEBUG_LOG(HLE, "sceHeapAllocHeapMemory(%08x, %08x)", heapAddr, memSize);
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user