diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-19 05:50:18 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-19 05:50:18 +0100 |
commit | de646cef2db58a1a1e8a5a0449bfa4c433c2031a (patch) | |
tree | 9a414ac8f8b2d591d27efdf4b140adcf7246f232 /src/core | |
parent | svc: Fix svcGetInfo MapRegionBaseAddr. (diff) | |
download | yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.gz yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.bz2 yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.lz yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.xz yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.tar.zst yuzu-de646cef2db58a1a1e8a5a0449bfa4c433c2031a.zip |
Diffstat (limited to 'src/core')
-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) { 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); } 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: void Ioctl(Kernel::HLERequestContext& ctx); void Close(Kernel::HLERequestContext& ctx); void Initialize(Kernel::HLERequestContext& ctx); + void SetClientPID(Kernel::HLERequestContext& ctx); std::shared_ptr<Module> nvdrv; }; |