summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/patch_manager.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-30 04:15:16 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-01 22:02:50 +0200
commit42fb4e82d3239f9d2fa4e5369ac58436c96b7466 (patch)
tree694b060997a6e558baca5a04960816ea9b66f206 /src/core/file_sys/patch_manager.h
parentpatch_manager: Use strings for patch type instead of enum (diff)
downloadyuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar.gz
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar.bz2
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar.lz
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar.xz
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.tar.zst
yuzu-42fb4e82d3239f9d2fa4e5369ac58436c96b7466.zip
Diffstat (limited to 'src/core/file_sys/patch_manager.h')
-rw-r--r--src/core/file_sys/patch_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h
index 7807515f9..254f7bfc9 100644
--- a/src/core/file_sys/patch_manager.h
+++ b/src/core/file_sys/patch_manager.h
@@ -34,6 +34,14 @@ public:
// - Game Updates
VirtualDir PatchExeFS(VirtualDir exefs) const;
+ // Currently tracked NSO patches:
+ // - IPS
+ std::vector<u8> PatchNSO(const std::vector<u8>& nso) const;
+
+ // Checks to see if PatchNSO() will have any effect given the NSO's build ID.
+ // Used to prevent expensive copies in NSO loader.
+ bool HasNSOPatch(const std::array<u8, 0x20>& build_id) const;
+
// Currently tracked RomFS patches:
// - Game Updates
// - LayeredFS