all repos — mgba @ 633b29128f0ce9809b2787421191807a29f31fa6

mGBA Game Boy Advance Emulator

3DS: Rearrange heaps a bit
Jeffrey Pfau jeffrey@endrift.com
Wed, 02 Sep 2015 22:39:21 -0700
commit

633b29128f0ce9809b2787421191807a29f31fa6

parent

8abb52f4df3b5e6c870de2101333e3b9fd227836

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/platform/3ds/3ds-memory.csrc/platform/3ds/3ds-memory.c

@@ -10,10 +10,10 @@

#include <3ds.h> void* anonymousMemoryMap(size_t size) { - return malloc(size); + return linearAlloc(size); } void mappedMemoryFree(void* memory, size_t size) { UNUSED(size); - free(memory); + linearFree(memory); }
M src/platform/3ds/ctru-heap.csrc/platform/3ds/ctru-heap.c

@@ -26,8 +26,8 @@ extern char* fake_heap_start;

extern char* fake_heap_end; u32 __linear_heap; u32 __heapBase; -static u32 __heap_size = 0x02800000; -static u32 __linear_heap_size = 0x01000000; +static u32 __heap_size = 0x02400000; +static u32 __linear_heap_size = 0x01400000; extern void (*__system_retAddr)(void);