mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #11249 from JosJuice/load-dol-elf-after-mem
Boot: Load DOL/ELF after memory setup
This commit is contained in:
@ -540,12 +540,6 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
|
|||||||
if (!executable.reader->IsValid())
|
if (!executable.reader->IsValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!executable.reader->LoadIntoMemory())
|
|
||||||
{
|
|
||||||
PanicAlertFmtT("Failed to load the executable to memory.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
SetDefaultDisc();
|
SetDefaultDisc();
|
||||||
|
|
||||||
SetupMSR();
|
SetupMSR();
|
||||||
@ -569,6 +563,12 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
|
|||||||
SetupGCMemory();
|
SetupGCMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!executable.reader->LoadIntoMemory())
|
||||||
|
{
|
||||||
|
PanicAlertFmtT("Failed to load the executable to memory.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
SConfig::OnNewTitleLoad();
|
SConfig::OnNewTitleLoad();
|
||||||
|
|
||||||
PC = executable.reader->GetEntryPoint();
|
PC = executable.reader->GetEntryPoint();
|
||||||
|
Reference in New Issue
Block a user