am: Add RequestExit event to AppletMessageQueue

Tested against libnx, signals to games to begin cleanup.
This commit is contained in:
Zach Hilman
2019-07-06 13:09:27 -04:00
parent bbc1437188
commit 4c1c8801a5
2 changed files with 6 additions and 0 deletions

View File

@ -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)) {