summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-04-17 15:19:02 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-04-17 15:26:48 +0200
commit51ca93981de55ebb813981c24a8ba20fcf2b75d9 (patch)
treed5874637e6426893df41b7080ae9287836cc9edc /src/core/hle/service/am/am.cpp
parentapplets: Make the applet mode a protected property of Applet (diff)
downloadyuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar.gz
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar.bz2
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar.lz
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar.xz
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.tar.zst
yuzu-51ca93981de55ebb813981c24a8ba20fcf2b75d9.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.cpp12
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_)} {