mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Plugins must be initialized before memory, so they can change the size. Fixes #20185
This commit is contained in:
1 parent
53c0755447
commit
426e289193
1 file changed
+5
-3
+5
-3
@@ -356,6 +356,11 @@ static bool CPU_Init(FileLoader *fileLoader, IdentifiedFileType type, std::strin
|
||||
g_CoreParameter.gpuCore = GPUCORE_SOFTWARE;
|
||||
}
|
||||
|
||||
// This must be before Memory::Init because plugins can override the memory size.
|
||||
if (type != IdentifiedFileType::PPSSPP_GE_DUMP) {
|
||||
HLEPlugins::Init();
|
||||
}
|
||||
|
||||
// Initialize the memory map as early as possible (now that we've read the PARAM.SFO).
|
||||
if (!Memory::Init()) {
|
||||
// We're screwed.
|
||||
@@ -365,9 +370,6 @@ static bool CPU_Init(FileLoader *fileLoader, IdentifiedFileType type, std::strin
|
||||
|
||||
InitVFPU();
|
||||
|
||||
if (type != IdentifiedFileType::PPSSPP_GE_DUMP)
|
||||
HLEPlugins::Init();
|
||||
|
||||
LoadSymbolsIfSupported();
|
||||
|
||||
mipsr4k.Reset();
|
||||
|
||||
Reference in new issue
Block a user