diff options
| author | 2018-12-21 13:43:51 -0500 | |
|---|---|---|
| committer | 2018-12-21 13:43:51 -0500 | |
| commit | 41cbd088c2b1ddf4ba513f296a307595644fffdc (patch) | |
| tree | ee845f1995d0baf9bfb347a4f9ef9a4f5367ea7f /src | |
| parent | Merge pull request #1923 from ogniK5377/nfp-device-list (diff) | |
| parent | service/am: Unstub GetAppletResourceUserId (diff) | |
| download | yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.gz yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.tar.xz yuzu-41cbd088c2b1ddf4ba513f296a307595644fffdc.zip | |
Merge pull request #1914 from lioncash/id
service/am: Unstub GetAppletResourceUserId
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 7 |
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") { | |||
| 71 | IWindowController::~IWindowController() = default; | 71 | IWindowController::~IWindowController() = default; |
| 72 | 72 | ||
| 73 | void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { | 73 | void 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 | ||
| 80 | void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { | 83 | void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { |