summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-03-29 15:11:34 +0200
committerGitHub <noreply@github.com>2023-03-29 15:11:34 +0200
commit8bdc51b620f0778f53d76ad9368da97a9213d631 (patch)
tree2a71c944643cda0ab019c22d1d46d58552f002ff /src/core/hle/service/am/am.cpp
parentMerge pull request #10003 from german77/disconnect (diff)
parentqt: implement RequestExit for applets (diff)
downloadyuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar.gz
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar.bz2
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar.lz
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar.xz
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.tar.zst
yuzu-8bdc51b620f0778f53d76ad9368da97a9213d631.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 8ab179cc8..a17c46121 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -945,7 +945,7 @@ public:
{0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"},
{1, &ILibraryAppletAccessor::IsCompleted, "IsCompleted"},
{10, &ILibraryAppletAccessor::Start, "Start"},
- {20, nullptr, "RequestExit"},
+ {20, &ILibraryAppletAccessor::RequestExit, "RequestExit"},
{25, nullptr, "Terminate"},
{30, &ILibraryAppletAccessor::GetResult, "GetResult"},
{50, nullptr, "SetOutOfFocusApplicationSuspendingEnabled"},
@@ -1010,6 +1010,15 @@ private:
rb.Push(ResultSuccess);
}
+ void RequestExit(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_AM, "called");
+
+ ASSERT(applet != nullptr);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(applet->RequestExit());
+ }
+
void PushInData(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");