diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-02 23:03:34 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-02 23:03:38 +0200 |
commit | 215b65fe75810b72bb76ae8dbb75ea59ac16f13f (patch) | |
tree | da57983b31917f55694d17e5fec0bab8dc0877fc /src/core/loader/nso.cpp | |
parent | deconstructed_rom_directory: Force NSO loader to patch NSOs (diff) | |
download | yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar.gz yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar.bz2 yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar.lz yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar.xz yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.tar.zst yuzu-215b65fe75810b72bb76ae8dbb75ea59ac16f13f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/nso.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index d22a88af1..2186b02af 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -94,7 +94,7 @@ static constexpr u32 PageAlignSize(u32 size) { } VAddr AppLoader_NSO::LoadModule(FileSys::VirtualFile file, VAddr load_base, - std::shared_ptr<FileSys::PatchManager> pm) { + boost::optional<FileSys::PatchManager> pm) { if (file == nullptr) return {}; @@ -144,7 +144,7 @@ VAddr AppLoader_NSO::LoadModule(FileSys::VirtualFile file, VAddr load_base, program_image.resize(image_size); // Apply patches if necessary - if (pm != nullptr && pm->HasNSOPatch(nso_header.build_id)) { + if (pm != boost::none && pm->HasNSOPatch(nso_header.build_id)) { std::vector<u8> pi_header(program_image.size() + 0x100); std::memcpy(pi_header.data(), &nso_header, sizeof(NsoHeader)); std::memcpy(pi_header.data() + 0x100, program_image.data(), program_image.size()); |