mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Somewhat better check to prevent some homebrew from loading into kernel memory.
This commit is contained in:
1 parent
a9ba755dde
commit
bb57aa69d1
1 file changed
+1
-1
@@ -415,7 +415,7 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop)
|
||||
totalSize = totalEnd - totalStart;
|
||||
|
||||
// If a load address is specified that's in regular RAM, override kernel module status
|
||||
bool inUser = totalStart > 0x08900000;
|
||||
bool inUser = totalStart >= PSP_GetUserMemoryBase();
|
||||
BlockAllocator &memblock = (kernelModule && !inUser) ? kernelMemory : userMemory;
|
||||
|
||||
if (!bRelocate)
|
||||
|
||||
Reference in new issue
Block a user