diff options
| author | 2018-09-03 18:47:23 -0400 | |
|---|---|---|
| committer | 2018-09-04 14:29:19 -0400 | |
| commit | 23d2c504795a3efadfa046cfe4b5faf95649f454 (patch) | |
| tree | f0714d54b5a820f3e58c79e23489f3d05a58382c /src/core | |
| parent | qt: Add deprecation warnings for DRD format (diff) | |
| download | yuzu-23d2c504795a3efadfa046cfe4b5faf95649f454.tar.gz yuzu-23d2c504795a3efadfa046cfe4b5faf95649f454.tar.xz yuzu-23d2c504795a3efadfa046cfe4b5faf95649f454.zip | |
card_image: Add program title ID getter
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/card_image.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/card_image.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp index e07ac8503..1bd3353e4 100644 --- a/src/core/file_sys/card_image.cpp +++ b/src/core/file_sys/card_image.cpp | |||
| @@ -115,6 +115,10 @@ VirtualDir XCI::GetLogoPartition() const { | |||
| 115 | return GetPartition(XCIPartition::Logo); | 115 | return GetPartition(XCIPartition::Logo); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | u64 XCI::GetProgramTitleID() const { | ||
| 119 | return secure_partition->GetProgramTitleID(); | ||
| 120 | } | ||
| 121 | |||
| 118 | std::shared_ptr<NCA> XCI::GetProgramNCA() const { | 122 | std::shared_ptr<NCA> XCI::GetProgramNCA() const { |
| 119 | return program; | 123 | return program; |
| 120 | } | 124 | } |
diff --git a/src/core/file_sys/card_image.h b/src/core/file_sys/card_image.h index 4d07d3d05..bd8c0fcbf 100644 --- a/src/core/file_sys/card_image.h +++ b/src/core/file_sys/card_image.h | |||
| @@ -79,6 +79,8 @@ public: | |||
| 79 | VirtualDir GetUpdatePartition() const; | 79 | VirtualDir GetUpdatePartition() const; |
| 80 | VirtualDir GetLogoPartition() const; | 80 | VirtualDir GetLogoPartition() const; |
| 81 | 81 | ||
| 82 | u64 GetProgramTitleID() const; | ||
| 83 | |||
| 82 | std::shared_ptr<NCA> GetProgramNCA() const; | 84 | std::shared_ptr<NCA> GetProgramNCA() const; |
| 83 | VirtualFile GetProgramNCAFile() const; | 85 | VirtualFile GetProgramNCAFile() const; |
| 84 | const std::vector<std::shared_ptr<NCA>>& GetNCAs() const; | 86 | const std::vector<std::shared_ptr<NCA>>& GetNCAs() const; |