VERY experimental Nintendo Switch 2 emulator
C++
card_image: Add accessor for all NCAs in XCI
Zach Hilmanf903b556d8f2
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cppindex a4823353e0..093c625fff 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.hindex e089d737cb..3514bdf6cd 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;