diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-30 04:16:32 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-01 22:02:50 +0200 |
commit | 6d441828e6eab50fea7041af8cfa5299fc78b7eb (patch) | |
tree | f866013fcc2135024ed95b3ef792e1a86635d4e3 | |
parent | nso: Add framework to support patching of uncompressed NSOs (diff) | |
download | yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar.gz yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar.bz2 yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar.lz yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar.xz yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.tar.zst yuzu-6d441828e6eab50fea7041af8cfa5299fc78b7eb.zip |
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp index c1824b9c3..338f6b01b 100644 --- a/src/core/loader/deconstructed_rom_directory.cpp +++ b/src/core/loader/deconstructed_rom_directory.cpp @@ -139,7 +139,9 @@ ResultStatus AppLoader_DeconstructedRomDirectory::Load(Kernel::Process& process) const FileSys::VirtualFile module_file = dir->GetFile(module); if (module_file != nullptr) { const VAddr load_addr = next_load_addr; - next_load_addr = AppLoader_NSO::LoadModule(module_file, load_addr); + next_load_addr = AppLoader_NSO::LoadModule( + module_file, load_addr, + std::make_shared<FileSys::PatchManager>(metadata.GetTitleID())); LOG_DEBUG(Loader, "loaded module {} @ 0x{:X}", module, load_addr); // Register module with GDBStub GDBStub::RegisterModule(module, load_addr, next_load_addr - 1, false); |