diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-19 20:48:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 20:48:08 +0100 |
commit | 0f363d37e6b9e124b70e667ce0b1e9b8674aba64 (patch) | |
tree | ddc9c1e4342264d884a3125aeb51ffb3fb49424b /src/core/hle/service/nvdrv/interface.cpp | |
parent | Merge pull request #97 from bunnei/time-stub (diff) | |
parent | nvdrv: Stub SetClientPID. (diff) | |
download | yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar.gz yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar.bz2 yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar.lz yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar.xz yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.tar.zst yuzu-0f363d37e6b9e124b70e667ce0b1e9b8674aba64.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/interface.cpp')
-rw-r--r-- | src/core/hle/service/nvdrv/interface.cpp | 12 |
1 files changed, 12 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) { rb.Push<u32>(0); } +void NVDRV::SetClientPID(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + u64 pid = rp.Pop<u64>(); + u64 unk = rp.Pop<u64>(); + + LOG_WARNING(Service, "(STUBBED) called, pid=0x%llx, unk=0x%llx", pid, unk); + + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); +} + NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) : ServiceFramework(name), nvdrv(std::move(nvdrv)) { static const FunctionInfo functions[] = { @@ -74,6 +85,7 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) {1, &NVDRV::Ioctl, "Ioctl"}, {2, &NVDRV::Close, "Close"}, {3, &NVDRV::Initialize, "Initialize"}, + {8, &NVDRV::SetClientPID, "SetClientPID"}, }; RegisterHandlers(functions); } |