@@ -122,10 +122,6 @@ VirtualFile ContentProvider::GetEntryRaw(ContentProviderEntry entry) const {
122122 return GetEntryRaw (entry.titleID , entry.type );
123123}
124124
125- std::unique_ptr<NCA > ContentProvider::GetEntryNCA (ContentProviderEntry entry) const {
126- return GetEntryNCA (entry.titleID , entry.type );
127- }
128-
129125std::vector<ContentProviderEntry> ContentProvider::ListEntries () const {
130126 return ListEntriesFilter (std::nullopt , std::nullopt , std::nullopt );
131127}
@@ -491,14 +487,10 @@ VirtualFile RegisteredCache::GetEntryRaw(u64 title_id, LoaderContentRecordType t
491487}
492488
493489IFileSysNCA * RegisteredCache::GetEntry (u64 title_id, LoaderContentRecordType type) const {
494- return GetEntryNCA (title_id, type).release ();
495- }
496-
497- std::unique_ptr<NCA > RegisteredCache::GetEntryNCA (u64 title_id, LoaderContentRecordType type) const {
498490 const auto raw = GetEntryRaw (title_id, type);
499491 if (raw == nullptr )
500492 return nullptr ;
501- return std::make_unique<NCA >(raw);
493+ return std::make_unique<NCA >(raw). release () ;
502494}
503495
504496template <typename T>
@@ -816,19 +808,6 @@ VirtualFile ContentProviderUnion::GetEntryRaw(u64 title_id, LoaderContentRecordT
816808 return nullptr ;
817809}
818810
819- std::unique_ptr<NCA > ContentProviderUnion::GetEntryNCA (u64 title_id, LoaderContentRecordType type) const {
820- for (const auto & provider : providers) {
821- if (provider.second == nullptr )
822- continue ;
823-
824- auto res = provider.second ->GetEntryNCA (title_id, type);
825- if (res != nullptr )
826- return res;
827- }
828-
829- return nullptr ;
830- }
831-
832811std::vector<ContentProviderEntry> ContentProviderUnion::ListEntriesFilter (
833812 std::optional<LoaderTitleType> title_type, std::optional<LoaderContentRecordType> record_type,
834813 std::optional<u64 > title_id) const {
@@ -924,13 +903,6 @@ VirtualFile ManualContentProvider::GetEntryRaw(u64 title_id, LoaderContentRecord
924903 return iter->second ;
925904}
926905
927- std::unique_ptr<NCA > ManualContentProvider::GetEntryNCA (u64 title_id, LoaderContentRecordType type) const {
928- const auto res = GetEntryRaw (title_id, type);
929- if (res == nullptr )
930- return nullptr ;
931- return std::make_unique<NCA >(res);
932- }
933-
934906std::vector<ContentProviderEntry> ManualContentProvider::ListEntriesFilter (
935907 std::optional<LoaderTitleType> title_type, std::optional<LoaderContentRecordType> record_type,
936908 std::optional<u64 > title_id) const {
0 commit comments