diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-29 21:10:16 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-29 21:10:16 +0100 |
commit | 1c0226815d453acfb5e1fd766765b43fd447c15c (patch) | |
tree | 1d145a3261bd5976f7d10287009f2ff9a0515b79 /src/core/loader/nso.cpp | |
parent | settings: Add setting to control NSO dumping (diff) | |
download | yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar.gz yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar.bz2 yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar.lz yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar.xz yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.tar.zst yuzu-1c0226815d453acfb5e1fd766765b43fd447c15c.zip |
Diffstat (limited to 'src/core/loader/nso.cpp')
-rw-r--r-- | src/core/loader/nso.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 68efca5c0..aaf006309 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -154,7 +154,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(const FileSys::VfsFile& file, VAd program_image.resize(image_size); // Apply patches if necessary - if (pm && pm->HasNSOPatch(nso_header.build_id)) { + if (pm && (pm->HasNSOPatch(nso_header.build_id) || Settings::values.dump_nso)) { 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()); |