mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-27 03:39:57 +00:00
[Android] Fix Android 4.3 from crashing on my devices. This was annoying to find.
This commit is contained in:
parent
fbd0fba13a
commit
60ccb2f44d
@ -152,7 +152,11 @@ u8* MemArena::Find4GBBase()
|
|||||||
PanicAlert("Failed to map 1 GB of memory space: %s", strerror(errno));
|
PanicAlert("Failed to map 1 GB of memory space: %s", strerror(errno));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#ifndef ANDROID
|
||||||
|
// Android 4.3 changes how munmap works which causes crashes.
|
||||||
|
// Keep the memory space after allocating it...
|
||||||
munmap(base, MemSize);
|
munmap(base, MemSize);
|
||||||
|
#endif
|
||||||
return static_cast<u8*>(base);
|
return static_cast<u8*>(base);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user