diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 00:03:01 -0500 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-03-26 22:05:37 -0400 |
commit | 45cb41f51751631e8ca4ec9c21300ab6d38053a5 (patch) | |
tree | 5f25e3fe43f3844d2ffd4e8b2582faade79a7e38 /src/core/core.h | |
parent | a6c7ae6fe87651be89a014d0fb0668bc267c6508 (diff) |
core: Store system-wide ContentProvider for the emulator
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 4d83b93cc4..82b2e087e2 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -21,6 +21,9 @@ class WebBrowserApplet; namespace FileSys { class CheatList; +class ContentProvider; +class ContentProviderUnion; +enum class ContentProviderUnionSlot; class VfsFilesystem; } // namespace FileSys @@ -270,6 +273,17 @@ public: Frontend::WebBrowserApplet& GetWebBrowser(); const Frontend::WebBrowserApplet& GetWebBrowser() const; + void SetContentProvider(std::unique_ptr<FileSys::ContentProviderUnion> provider); + + FileSys::ContentProvider& GetContentProvider(); + + const FileSys::ContentProvider& GetContentProvider() const; + + void RegisterContentProvider(FileSys::ContentProviderUnionSlot slot, + FileSys::ContentProvider* provider); + + void ClearContentProvider(FileSys::ContentProviderUnionSlot slot); + private: System(); |