Plugins must be initialized before memory, so they can change the size. Fixes #20185

This commit is contained in:
Henrik Rydgård 2025-04-02 09:38:08 +02:00
parent 53c0755447
commit 426e289193

View file

@ -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();