diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-10 01:16:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 01:16:37 +0200 |
commit | 61f63bb994e358b925771bd51898822573e5780e (patch) | |
tree | a6a9f12b12b5946c04ccaf0856e0f3a94bbffe17 /src/core/file_sys/submission_package.h | |
parent | Merge pull request #2366 from FernandoS27/xmad-fix (diff) | |
parent | patch_manager: Dump NSO name with build ID (diff) | |
download | yuzu-61f63bb994e358b925771bd51898822573e5780e.tar yuzu-61f63bb994e358b925771bd51898822573e5780e.tar.gz yuzu-61f63bb994e358b925771bd51898822573e5780e.tar.bz2 yuzu-61f63bb994e358b925771bd51898822573e5780e.tar.lz yuzu-61f63bb994e358b925771bd51898822573e5780e.tar.xz yuzu-61f63bb994e358b925771bd51898822573e5780e.tar.zst yuzu-61f63bb994e358b925771bd51898822573e5780e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/submission_package.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/file_sys/submission_package.h b/src/core/file_sys/submission_package.h index 9a28ed5bb..ee9b6ce17 100644 --- a/src/core/file_sys/submission_package.h +++ b/src/core/file_sys/submission_package.h @@ -42,9 +42,12 @@ public: // Type 0 Only (Collection of NCAs + Certificate + Ticket + Meta XML) std::vector<std::shared_ptr<NCA>> GetNCAsCollapsed() const; std::multimap<u64, std::shared_ptr<NCA>> GetNCAsByTitleID() const; - std::map<u64, std::map<ContentRecordType, std::shared_ptr<NCA>>> GetNCAs() const; - std::shared_ptr<NCA> GetNCA(u64 title_id, ContentRecordType type) const; - VirtualFile GetNCAFile(u64 title_id, ContentRecordType type) const; + std::map<u64, std::map<std::pair<TitleType, ContentRecordType>, std::shared_ptr<NCA>>> GetNCAs() + const; + std::shared_ptr<NCA> GetNCA(u64 title_id, ContentRecordType type, + TitleType title_type = TitleType::Application) const; + VirtualFile GetNCAFile(u64 title_id, ContentRecordType type, + TitleType title_type = TitleType::Application) const; std::vector<Core::Crypto::Key128> GetTitlekey() const; std::vector<VirtualFile> GetFiles() const override; @@ -67,7 +70,7 @@ private: std::shared_ptr<PartitionFilesystem> pfs; // Map title id -> {map type -> NCA} - std::map<u64, std::map<ContentRecordType, std::shared_ptr<NCA>>> ncas; + std::map<u64, std::map<std::pair<TitleType, ContentRecordType>, std::shared_ptr<NCA>>> ncas; std::vector<VirtualFile> ticket_files; Core::Crypto::KeyManager keys; |