diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2019-07-06 13:09:27 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:24:10 -0400 |
| commit | 4c1c8801a51335aa4a74e7db0868b861803d0c61 (patch) | |
| tree | 98304ff292ee922a6acc9d384c74a8d9ed47efd6 /src/core/hle/service/am/am.cpp | |
| parent | bbc143718835f62878b408700380b7f56741f259 (diff) | |
am: Add RequestExit event to AppletMessageQueue
Tested against libnx, signals to games to begin cleanup.
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 6c594dcaf..c98fefdeb 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -550,6 +550,10 @@ void AppletMessageQueue::OperationModeChanged() { on_operation_mode_changed.writable->Signal(); } +void AppletMessageQueue::RequestExit() { + PushMessage(AppletMessage::ExitRequested); +} + ICommonStateGetter::ICommonStateGetter(Core::System& system, std::shared_ptr<AppletMessageQueue> msg_queue) : ServiceFramework("ICommonStateGetter"), system(system), msg_queue(std::move(msg_queue)) { |
