diff options
| author | 2018-01-18 23:50:18 -0500 | |
|---|---|---|
| committer | 2018-01-18 23:50:18 -0500 | |
| commit | de646cef2db58a1a1e8a5a0449bfa4c433c2031a (patch) | |
| tree | 9a414ac8f8b2d591d27efdf4b140adcf7246f232 /src | |
| parent | svc: Fix svcGetInfo MapRegionBaseAddr. (diff) | |
| download | yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.gz yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.xz yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.zip | |
nvdrv: Stub SetClientPID.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvdrv/interface.cpp | 12 | ||||
| -rw-r--r-- | src/core/hle/service/nvdrv/interface.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp index 848615fa7..417455200 100644 --- a/src/core/hle/service/nvdrv/interface.cpp +++ b/src/core/hle/service/nvdrv/interface.cpp | |||
| @@ -67,6 +67,17 @@ void NVDRV::Initialize(Kernel::HLERequestContext& ctx) { | |||
| 67 | rb.Push<u32>(0); | 67 | rb.Push<u32>(0); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | void NVDRV::SetClientPID(Kernel::HLERequestContext& ctx) { | ||
| 71 | IPC::RequestParser rp{ctx}; | ||
| 72 | u64 pid = rp.Pop<u64>(); | ||
| 73 | u64 unk = rp.Pop<u64>(); | ||
| 74 | |||
| 75 | LOG_WARNING(Service, "(STUBBED) called, pid=0x%llx, unk=0x%llx", pid, unk); | ||
| 76 | |||
| 77 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 78 | rb.Push(RESULT_SUCCESS); | ||
| 79 | } | ||
| 80 | |||
| 70 | NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) | 81 | NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) |
| 71 | : ServiceFramework(name), nvdrv(std::move(nvdrv)) { | 82 | : ServiceFramework(name), nvdrv(std::move(nvdrv)) { |
| 72 | static const FunctionInfo functions[] = { | 83 | static const FunctionInfo functions[] = { |
| @@ -74,6 +85,7 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) | |||
| 74 | {1, &NVDRV::Ioctl, "Ioctl"}, | 85 | {1, &NVDRV::Ioctl, "Ioctl"}, |
| 75 | {2, &NVDRV::Close, "Close"}, | 86 | {2, &NVDRV::Close, "Close"}, |
| 76 | {3, &NVDRV::Initialize, "Initialize"}, | 87 | {3, &NVDRV::Initialize, "Initialize"}, |
| 88 | {8, &NVDRV::SetClientPID, "SetClientPID"}, | ||
| 77 | }; | 89 | }; |
| 78 | RegisterHandlers(functions); | 90 | RegisterHandlers(functions); |
| 79 | } | 91 | } |
diff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.h index 1b9aa9938..2283f358e 100644 --- a/src/core/hle/service/nvdrv/interface.h +++ b/src/core/hle/service/nvdrv/interface.h | |||
| @@ -22,6 +22,7 @@ private: | |||
| 22 | void Ioctl(Kernel::HLERequestContext& ctx); | 22 | void Ioctl(Kernel::HLERequestContext& ctx); |
| 23 | void Close(Kernel::HLERequestContext& ctx); | 23 | void Close(Kernel::HLERequestContext& ctx); |
| 24 | void Initialize(Kernel::HLERequestContext& ctx); | 24 | void Initialize(Kernel::HLERequestContext& ctx); |
| 25 | void SetClientPID(Kernel::HLERequestContext& ctx); | ||
| 25 | 26 | ||
| 26 | std::shared_ptr<Module> nvdrv; | 27 | std::shared_ptr<Module> nvdrv; |
| 27 | }; | 28 | }; |