summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-10 02:51:14 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-12 04:50:48 +0200
commitab8acce64598e89c31545713180f3334d1f81991 (patch)
tree7f3ebb470b58e6c023030e68ee5c21ed7e0b4658 /src/core
parentvfs_real: Add CreateFullPath to CreateFile (diff)
downloadyuzu-ab8acce64598e89c31545713180f3334d1f81991.tar
yuzu-ab8acce64598e89c31545713180f3334d1f81991.tar.gz
yuzu-ab8acce64598e89c31545713180f3334d1f81991.tar.bz2
yuzu-ab8acce64598e89c31545713180f3334d1f81991.tar.lz
yuzu-ab8acce64598e89c31545713180f3334d1f81991.tar.xz
yuzu-ab8acce64598e89c31545713180f3334d1f81991.tar.zst
yuzu-ab8acce64598e89c31545713180f3334d1f81991.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/card_image.cpp4
-rw-r--r--src/core/file_sys/card_image.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp
index a4823353e..093c625ff 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/src/core/file_sys/card_image.cpp
@@ -93,6 +93,10 @@ VirtualDir XCI::GetLogoPartition() const {
return GetPartition(XCIPartition::Logo);
}
+const std::vector<std::shared_ptr<NCA>>& XCI::GetNCAs() const {
+ return ncas;
+}
+
std::shared_ptr<NCA> XCI::GetNCAByType(NCAContentType type) const {
const auto iter =
std::find_if(ncas.begin(), ncas.end(),
diff --git a/src/core/file_sys/card_image.h b/src/core/file_sys/card_image.h
index e089d737c..3514bdf6c 100644
--- a/src/core/file_sys/card_image.h
+++ b/src/core/file_sys/card_image.h
@@ -68,6 +68,7 @@ public:
VirtualDir GetUpdatePartition() const;
VirtualDir GetLogoPartition() const;
+ const std::vector<std::shared_ptr<NCA>>& GetNCAs() const;
std::shared_ptr<NCA> GetNCAByType(NCAContentType type) const;
VirtualFile GetNCAFileByType(NCAContentType type) const;