summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/nvdrv/interface.cpp12
-rw-r--r--src/core/hle/service/nvdrv/interface.h1
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
70void 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
70NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) 81NVDRV::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};