summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-21 02:59:15 +0200
committerSubv <subv2112@gmail.com>2018-07-21 02:59:15 +0200
commit966874e357a1207d5b6bdd7757edd9adb130d256 (patch)
tree9206cf066d61d858ad99b1f4850a1ae362ecc1ff
parentMerge pull request #730 from lioncash/string (diff)
downloadyuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar.gz
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar.bz2
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar.lz
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar.xz
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.tar.zst
yuzu-966874e357a1207d5b6bdd7757edd9adb130d256.zip
-rw-r--r--src/core/loader/deconstructed_rom_directory.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp
index 19b8667ba..394963a69 100644
--- a/src/core/loader/deconstructed_rom_directory.cpp
+++ b/src/core/loader/deconstructed_rom_directory.cpp
@@ -83,16 +83,13 @@ ResultStatus AppLoader_DeconstructedRomDirectory::Load(
VAddr next_load_addr{Memory::PROCESS_IMAGE_VADDR};
for (const auto& module : {"rtld", "main", "subsdk0", "subsdk1", "subsdk2", "subsdk3",
"subsdk4", "subsdk5", "subsdk6", "subsdk7", "sdk"}) {
- const VAddr load_addr = next_load_addr;
const FileSys::VirtualFile module_file = dir->GetFile(module);
- if (module_file != nullptr)
+ if (module_file != nullptr) {
+ const VAddr load_addr = next_load_addr;
next_load_addr = AppLoader_NSO::LoadModule(module_file, load_addr);
- if (next_load_addr) {
LOG_DEBUG(Loader, "loaded module {} @ 0x{:X}", module, load_addr);
// Register module with GDBStub
GDBStub::RegisterModule(module, load_addr, next_load_addr - 1, false);
- } else {
- next_load_addr = load_addr;
}
}