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/am.cpp | |
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 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index c59054468..4c8216b47 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -619,16 +619,20 @@ std::size_t AppletMessageQueue::GetMessageCount() const { return messages.size(); } +void AppletMessageQueue::RequestExit() { + PushMessage(AppletMessage::ExitRequested); +} + +void AppletMessageQueue::FocusStateChanged() { + PushMessage(AppletMessage::FocusStateChanged); +} + void AppletMessageQueue::OperationModeChanged() { PushMessage(AppletMessage::OperationModeChanged); PushMessage(AppletMessage::PerformanceModeChanged); on_operation_mode_changed->GetWritableEvent()->Signal(); } -void AppletMessageQueue::RequestExit() { - PushMessage(AppletMessage::ExitRequested); -} - ICommonStateGetter::ICommonStateGetter(Core::System& system_, std::shared_ptr<AppletMessageQueue> msg_queue_) : ServiceFramework{system_, "ICommonStateGetter"}, msg_queue{std::move(msg_queue_)} { |