aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/registered_cache.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-24 19:10:17 -0400
committerZach Hilman <zachhilman@gmail.com>2019-06-24 19:10:17 -0400
commitdb2e5e5fa6731c02a016ae583732ce1df8fae3b3 (patch)
tree180dd7b98313f3db6134ef76e12ee78a6d17d4c9 /src/core/file_sys/registered_cache.h
parenta468273221097462032991bad2cca1218c2364b2 (diff)
registered_cache: Add getter to determine source slot in content provider union
Used to determine StorageId source for application data.
Diffstat (limited to 'src/core/file_sys/registered_cache.h')
-rw-r--r--src/core/file_sys/registered_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index ec9052653..4398d63e1 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -199,6 +199,9 @@ public:
std::optional<TitleType> title_type = {}, std::optional<ContentRecordType> record_type = {},
std::optional<u64> title_id = {}) const;
+ std::optional<ContentProviderUnionSlot> GetSlotForEntry(u64 title_id,
+ ContentRecordType type) const;
+
private:
std::map<ContentProviderUnionSlot, ContentProvider*> providers;
};