diff options
| author | 2018-01-15 15:10:18 -0500 | |
|---|---|---|
| committer | 2018-01-15 15:10:18 -0500 | |
| commit | 1148e2ce7bfad1c43ec1ba50e41f447fa1d782f1 (patch) | |
| tree | 3191a827b60a16ddd2e4f5e9896823d66d52310c | |
| parent | applet_oe: Stub SetFocusHandlingMode, GetCurrentFocusState, SetTerminateResult. (diff) | |
| download | yuzu-1148e2ce7bfad1c43ec1ba50e41f447fa1d782f1.tar.gz yuzu-1148e2ce7bfad1c43ec1ba50e41f447fa1d782f1.tar.xz yuzu-1148e2ce7bfad1c43ec1ba50e41f447fa1d782f1.zip | |
pctl: GetService should return an IParentalControlService interface.
| -rw-r--r-- | src/core/hle/service/pctl/pctl_a.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp index 904a31c6b..8d4462773 100644 --- a/src/core/hle/service/pctl/pctl_a.cpp +++ b/src/core/hle/service/pctl/pctl_a.cpp | |||
| @@ -9,11 +9,16 @@ | |||
| 9 | namespace Service { | 9 | namespace Service { |
| 10 | namespace PCTL { | 10 | namespace PCTL { |
| 11 | 11 | ||
| 12 | class IParentalControlService final : public ServiceFramework<IParentalControlService> { | ||
| 13 | public: | ||
| 14 | IParentalControlService() : ServiceFramework("IParentalControlService") {} | ||
| 15 | }; | ||
| 16 | |||
| 12 | void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { | 17 | void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { |
| 13 | LOG_WARNING(Service, "(STUBBED) called"); | 18 | IPC::RequestBuilder rb{ ctx, 2, 0, 0, 1 }; |
| 14 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 15 | rb.Push(RESULT_SUCCESS); | 19 | rb.Push(RESULT_SUCCESS); |
| 16 | // TODO(Subv): This should return an IParentalControlService interface. | 20 | rb.PushIpcInterface<IParentalControlService>(); |
| 21 | LOG_DEBUG(Service, "called"); | ||
| 17 | } | 22 | } |
| 18 | 23 | ||
| 19 | PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { | 24 | PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { |