aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/content_archive.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-20 13:26:27 -0500
committerGitHub <noreply@github.com>2019-01-20 13:26:27 -0500
commitf9e69faf4a729819a7a807b84af81514ccab49c0 (patch)
tree78526786b052254ff8dc437842888df6190cb568 /src/core/file_sys/content_archive.cpp
parent83f8d1aa2ebaf47323b31ff1c5af6f0ced37bedc (diff)
parentb273b195762433ab015ec015061414aac4b9683e (diff)
Merge pull request #2025 from DarkLordZach/loader-banner-logo
loader: Add getters for application banner and logo
Diffstat (limited to 'src/core/file_sys/content_archive.cpp')
-rw-r--r--src/core/file_sys/content_archive.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp
index 19b6f8600..5aa3b600b 100644
--- a/src/core/file_sys/content_archive.cpp
+++ b/src/core/file_sys/content_archive.cpp
@@ -359,6 +359,8 @@ bool NCA::ReadPFS0Section(const NCASectionHeader& section, const NCASectionTable
dirs.push_back(std::move(npfs));
if (IsDirectoryExeFS(dirs.back()))
exefs = dirs.back();
+ else if (IsDirectoryLogoPartition(dirs.back()))
+ logo = dirs.back();
} else {
if (has_rights_id)
status = Loader::ResultStatus::ErrorIncorrectTitlekeyOrTitlekek;
@@ -546,4 +548,8 @@ u64 NCA::GetBaseIVFCOffset() const {
return ivfc_offset;
}
+VirtualDir NCA::GetLogoPartition() const {
+ return logo;
+}
+
} // namespace FileSys