mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +00:00
(CTR/3DS) heap_size can't be bigger than 0x6000000.
This commit is contained in:
parent
6fc6f681f5
commit
9fbb790404
@ -72,7 +72,8 @@ void __system_allocateHeaps() {
|
||||
// For n3DS running with 124MB, only 110MB appears actually available
|
||||
app_memory = app_memory > 0x6E00000 ? 0x6E00000 : app_memory;
|
||||
|
||||
heap_size = (app_memory - mem_used - linear_heap_size - 0x10000) & 0xFFFFF000;
|
||||
heap_size = (app_memory - mem_used - linear_heap_size - 0x10000) & 0xFFFFF000;
|
||||
heap_size = heap_size > 0x6000000? 0x6000000 : heap_size;
|
||||
|
||||
// Allocate the application heap
|
||||
__heapBase = 0x08000000;
|
||||
|
Loading…
Reference in New Issue
Block a user