summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-11-06 05:40:54 +0100
committerGitHub <noreply@github.com>2022-11-06 05:40:54 +0100
commitdb679ab6203b66daed19f467e4e260d97b022249 (patch)
treeb95ee86ccebaae14cf877b6be330510a179cac0e /Source/Core
parente1f5eb3d8de687871d1e5a05cf5b2fea823a6196 (diff)
parentfb916a4c336c2bd82666d08e8b04bb2d1123968a (diff)
Merge pull request #11249 from JosJuice/load-dol-elf-after-mem
Boot: Load DOL/ELF after memory setup
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Boot/Boot.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Core/Boot/Boot.cpp b/Source/Core/Core/Boot/Boot.cpp
index f2ee8da546..a80aa4d719 100644
--- a/Source/Core/Core/Boot/Boot.cpp
+++ b/Source/Core/Core/Boot/Boot.cpp
@@ -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();
@@ -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();