diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-11 06:53:55 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-09-05 02:38:43 +0200 |
commit | d1abe8e92afd6d03324af5733660aca2a77f134b (patch) | |
tree | b7808fa1ae513e46f03ac878c27d9a2455cd1e9f /src/core/hle/service/am/applets/applets.h | |
parent | Merge pull request #2830 from FearlessTobi/port-4911 (diff) | |
download | yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.gz yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.bz2 yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.lz yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.xz yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.zst yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.zip |
Diffstat (limited to 'src/core/hle/service/am/applets/applets.h')
-rw-r--r-- | src/core/hle/service/am/applets/applets.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/core/hle/service/am/applets/applets.h b/src/core/hle/service/am/applets/applets.h index adc973dad..764c3418c 100644 --- a/src/core/hle/service/am/applets/applets.h +++ b/src/core/hle/service/am/applets/applets.h @@ -12,6 +12,10 @@ union ResultCode; +namespace Core { +class System; +} + namespace Core::Frontend { class ECommerceApplet; class ErrorApplet; @@ -22,6 +26,10 @@ class SoftwareKeyboardApplet; class WebBrowserApplet; } // namespace Core::Frontend +namespace Kernel { +class KernelCore; +} + namespace Service::AM { class IStorage; @@ -53,7 +61,7 @@ enum class AppletId : u32 { class AppletDataBroker final { public: - AppletDataBroker(); + explicit AppletDataBroker(Kernel::KernelCore& kernel_); ~AppletDataBroker(); struct RawChannelData { @@ -108,7 +116,7 @@ private: class Applet { public: - Applet(); + explicit Applet(Kernel::KernelCore& kernel_); virtual ~Applet(); virtual void Initialize(); @@ -179,7 +187,7 @@ struct AppletFrontendSet { class AppletManager { public: - AppletManager(); + explicit AppletManager(Core::System& system_); ~AppletManager(); void SetAppletFrontendSet(AppletFrontendSet set); @@ -187,10 +195,11 @@ public: void SetDefaultAppletsIfMissing(); void ClearAll(); - std::shared_ptr<Applet> GetApplet(AppletId id, u64 current_process_title_id) const; + std::shared_ptr<Applet> GetApplet(AppletId id) const; private: AppletFrontendSet frontend; + Core::System& system; }; } // namespace Applets |