mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 06:17:56 -05:00
registered_cache: Add getter to determine source slot in content provider union
Used to determine StorageId source for application data.
This commit is contained in:
@ -645,6 +645,20 @@ ContentProviderUnion::ListEntriesFilterOrigin(std::optional<ContentProviderUnion
|
||||
return out;
|
||||
}
|
||||
|
||||
std::optional<ContentProviderUnionSlot> ContentProviderUnion::GetSlotForEntry(
|
||||
u64 title_id, ContentRecordType type) const {
|
||||
for (const auto& [slot, provider] : providers) {
|
||||
if (provider == nullptr)
|
||||
continue;
|
||||
|
||||
if (provider->HasEntry(title_id, type)) {
|
||||
return slot;
|
||||
}
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
ManualContentProvider::~ManualContentProvider() = default;
|
||||
|
||||
void ManualContentProvider::AddEntry(TitleType title_type, ContentRecordType content_type,
|
||||
|
Reference in New Issue
Block a user