summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-21 19:43:51 +0100
committerGitHub <noreply@github.com>2018-12-21 19:43:51 +0100
commit41cbd088c2b1ddf4ba513f296a307595644fffdc (patch)
treeee845f1995d0baf9bfb347a4f9ef9a4f5367ea7f /src/core/hle/service
parentMerge pull request #1923 from ogniK5377/nfp-device-list (diff)
parentservice/am: Unstub GetAppletResourceUserId (diff)
downloadyuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.gz
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.bz2
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.lz
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.xz
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.zst
yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.zip
Diffstat (limited to 'src/core/hle/service')
-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") {
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) {