summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/am/am.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index f83730cd6..27c31aad2 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -71,10 +71,13 @@ IWindowController::IWindowController() : ServiceFramework("IWindowController") {
71IWindowController::~IWindowController() = default; 71IWindowController::~IWindowController() = default;
72 72
73void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { 73void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) {
74 LOG_WARNING(Service_AM, "(STUBBED) called"); 74 const u64 process_id = Core::System::GetInstance().Kernel().CurrentProcess()->GetProcessID();
75
76 LOG_DEBUG(Service_AM, "called. Process ID=0x{:016X}", process_id);
77
75 IPC::ResponseBuilder rb{ctx, 4}; 78 IPC::ResponseBuilder rb{ctx, 4};
76 rb.Push(RESULT_SUCCESS); 79 rb.Push(RESULT_SUCCESS);
77 rb.Push<u64>(0); 80 rb.Push<u64>(process_id);
78} 81}
79 82
80void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { 83void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) {