summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-12-28 06:03:01 +0100
committerZach Hilman <zachhilman@gmail.com>2019-03-27 03:05:37 +0100
commit45cb41f51751631e8ca4ec9c21300ab6d38053a5 (patch)
tree5f25e3fe43f3844d2ffd4e8b2582faade79a7e38 /src/core/core.h
parentfile_sys: Create ContentProvider interface and default implementations (diff)
downloadyuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar.gz
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar.bz2
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar.lz
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar.xz
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.tar.zst
yuzu-45cb41f51751631e8ca4ec9c21300ab6d38053a5.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 4d83b93cc..82b2e087e 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();