Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11249 from JosJuice/load-dol-elf-after-mem
Boot: Load DOL/ELF after memory setup
  • Loading branch information
AdmiralCurtiss committed Nov 6, 2022
2 parents e1f5eb3 + fb916a4 commit db679ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Core/Core/Boot/Boot.cpp
Expand Up @@ -540,12 +540,6 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
if (!executable.reader->IsValid())
return false;

if (!executable.reader->LoadIntoMemory())
{
PanicAlertFmtT("Failed to load the executable to memory.");
return false;
}

SetDefaultDisc();

SetupMSR();
Expand All @@ -569,6 +563,12 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
SetupGCMemory();
}

if (!executable.reader->LoadIntoMemory())
{
PanicAlertFmtT("Failed to load the executable to memory.");
return false;
}

SConfig::OnNewTitleLoad();

PC = executable.reader->GetEntryPoint();
Expand Down

0 comments on commit db679ab

Please sign in to comment.