mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Plugins must be initialized before memory, so they can change the size. Fixes #20185
This commit is contained in:
parent
53c0755447
commit
426e289193
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue