summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/submission_package.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-12-28 06:03:38 +0100
committerZach Hilman <zachhilman@gmail.com>2019-03-27 03:05:37 +0100
commit60f39060c68605c6b3628cea37ef4353f06b5d0e (patch)
tree880bd7ae3c02ce8ba3772b06ca8da6b062452113 /src/core/file_sys/submission_package.h
parentcore: Store system-wide ContentProvider for the emulator (diff)
downloadyuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar.gz
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar.bz2
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar.lz
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar.xz
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.tar.zst
yuzu-60f39060c68605c6b3628cea37ef4353f06b5d0e.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/submission_package.h11
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;