mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Add a compat flag to map some extra memory at address 0.
Can be used to work around certain types of crashes without having to disable fast memory.
This commit is contained in:
1 parent
2940c64c95
commit
34473fc621
7 files changed
+59
-25
No files matched your search
+6
-1
@@ -365,8 +365,13 @@ static bool CPU_Init(FileLoader *fileLoader, IdentifiedFileType type, std::strin
|
||||
HLEPlugins::Init();
|
||||
}
|
||||
|
||||
Memory::MemMapSetupFlags memMapFlags = Memory::MemMapSetupFlags::Default;
|
||||
if (g_CoreParameter.compat.flags().NullPageValid) {
|
||||
memMapFlags = Memory::MemMapSetupFlags::AllocNullPage;
|
||||
}
|
||||
|
||||
// Initialize the memory map as early as possible (now that we've read the PARAM.SFO).
|
||||
if (!Memory::Init()) {
|
||||
if (!Memory::Init(memMapFlags)) {
|
||||
// We're screwed.
|
||||
*errorString = "Memory init failed";
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user