mirror of https://github.com/mgba-emu/mgba.git
3DS: Use linearAlloc instead of malloc
This commit is contained in:
parent
ae71a7ec19
commit
2d6749f8c8
|
@ -5,10 +5,13 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
#include "util/memory.h"
|
#include "util/memory.h"
|
||||||
|
|
||||||
|
#include <3ds.h>
|
||||||
|
|
||||||
void* anonymousMemoryMap(size_t size) {
|
void* anonymousMemoryMap(size_t size) {
|
||||||
return malloc(size);
|
return linearAlloc(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mappedMemoryFree(void* memory, size_t size) {
|
void mappedMemoryFree(void* memory, size_t size) {
|
||||||
free(memory);
|
UNUSED(size);
|
||||||
|
linearFree(memory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue