summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-18 03:01:06 +0100
committerLioncash <mathew1800@gmail.com>2018-12-18 03:01:14 +0100
commitdd272298aa881de546a714b80505a095f6949258 (patch)
tree50bbca3cf57c02529e8e609de02eb0897ec8d198 /src/core/hle/service/am
parentMerge pull request #1905 from bunnei/ignore-empty-gpu-lists (diff)
downloadyuzu-dd272298aa881de546a714b80505a095f6949258.tar
yuzu-dd272298aa881de546a714b80505a095f6949258.tar.gz
yuzu-dd272298aa881de546a714b80505a095f6949258.tar.bz2
yuzu-dd272298aa881de546a714b80505a095f6949258.tar.lz
yuzu-dd272298aa881de546a714b80505a095f6949258.tar.xz
yuzu-dd272298aa881de546a714b80505a095f6949258.tar.zst
yuzu-dd272298aa881de546a714b80505a095f6949258.zip
Diffstat (limited to 'src/core/hle/service/am')
-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 3a7b6da84..cfd4ed3de 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") {
IWindowController::~IWindowController() = default;
void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_AM, "(STUBBED) called");
+ const u64 process_id = Core::System::GetInstance().Kernel().CurrentProcess()->GetProcessID();
+
+ LOG_DEBUG(Service_AM, "called. Process ID=0x{:016X}", process_id);
+
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
- rb.Push<u64>(0);
+ rb.Push<u64>(process_id);
}
void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) {