diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-17 20:37:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 20:37:17 +0200 |
commit | ce921e0f2619fc52a70e5545711e284b320328d4 (patch) | |
tree | d5874637e6426893df41b7080ae9287836cc9edc /src/core/hle/service/am/applets/applets.h | |
parent | Merge pull request #6125 from ogniK5377/nvdec-close-dev (diff) | |
parent | applets: Send focus state change message on applet state change (diff) | |
download | yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar.gz yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar.bz2 yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar.lz yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar.xz yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.tar.zst yuzu-ce921e0f2619fc52a70e5545711e284b320328d4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/applets/applets.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/core/hle/service/am/applets/applets.h b/src/core/hle/service/am/applets/applets.h index 26b482015..4215d2232 100644 --- a/src/core/hle/service/am/applets/applets.h +++ b/src/core/hle/service/am/applets/applets.h @@ -72,7 +72,7 @@ enum class LibraryAppletMode : u32 { class AppletDataBroker final { public: - explicit AppletDataBroker(Kernel::KernelCore& kernel_); + explicit AppletDataBroker(Core::System& system_, LibraryAppletMode applet_mode_); ~AppletDataBroker(); struct RawChannelData { @@ -102,6 +102,9 @@ public: std::shared_ptr<Kernel::KReadableEvent> GetStateChangedEvent() const; private: + Core::System& system; + LibraryAppletMode applet_mode; + // Queues are named from applet's perspective // PopNormalDataToApplet and PushNormalDataFromGame @@ -127,7 +130,7 @@ private: class Applet { public: - explicit Applet(Kernel::KernelCore& kernel_); + explicit Applet(Core::System& system_, LibraryAppletMode applet_mode_); virtual ~Applet(); virtual void Initialize(); @@ -137,10 +140,6 @@ public: virtual void ExecuteInteractive() = 0; virtual void Execute() = 0; - bool IsInitialized() const { - return initialized; - } - AppletDataBroker& GetBroker() { return broker; } @@ -149,6 +148,14 @@ public: return broker; } + LibraryAppletMode GetLibraryAppletMode() const { + return applet_mode; + } + + bool IsInitialized() const { + return initialized; + } + protected: struct CommonArguments { u32_le arguments_version; @@ -162,6 +169,7 @@ protected: CommonArguments common_args{}; AppletDataBroker broker; + LibraryAppletMode applet_mode; bool initialized = false; }; |