diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-08-29 04:37:42 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-09-04 22:24:02 +0200 |
commit | a6e75cd45b75a202eed1a68692e33e7732789dd2 (patch) | |
tree | 48af4f9227030e247474334067515a5cdd0f5283 /src/core/file_sys/content_archive.h | |
parent | bktr: Fix missing includes and optimize style (diff) | |
download | yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.gz yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.bz2 yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.lz yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.xz yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.tar.zst yuzu-a6e75cd45b75a202eed1a68692e33e7732789dd2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/content_archive.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h index 104226f3a..00eca52da 100644 --- a/src/core/file_sys/content_archive.h +++ b/src/core/file_sys/content_archive.h @@ -79,7 +79,8 @@ bool IsValidNCA(const NCAHeader& header); // After construction, use GetStatus to determine if the file is valid and ready to be used. class NCA : public ReadOnlyVfsDirectory { public: - explicit NCA(VirtualFile file, VirtualFile bktr_base_romfs = nullptr); + explicit NCA(VirtualFile file, VirtualFile bktr_base_romfs = nullptr, + u64 bktr_base_ivfc_offset = 0); Loader::ResultStatus GetStatus() const; std::vector<std::shared_ptr<VfsFile>> GetFiles() const override; @@ -96,6 +97,9 @@ public: VirtualFile GetBaseFile() const; + // Returns the base ivfc offset used in BKTR patching. + u64 GetBaseIVFCOffset() const; + protected: bool ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) override; @@ -112,6 +116,7 @@ private: VirtualDir exefs = nullptr; VirtualFile file; VirtualFile bktr_base_romfs; + u64 ivfc_offset; NCAHeader header{}; bool has_rights_id{}; |