diff options
| author | bunnei <bunneidev@gmail.com> | 2021-06-02 15:29:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-02 15:29:09 -0700 |
| commit | 4ea171fa5e50723d50b57b26aaaca2fac30eea57 (patch) | |
| tree | ef2f0869252f59b0b8aeb62a48e2a233c0f94664 /src/core/hle/service/pctl/module.cpp | |
| parent | d6006e9a3f0ea2b9fca17174542b5aba131dd294 (diff) | |
| parent | a0e4c2e1fc8d3ce33948a0ec6a840960f1ceb484 (diff) | |
Merge pull request #6308 from Morph1984/result
general: Replace RESULT_NAME with ResultName
Diffstat (limited to 'src/core/hle/service/pctl/module.cpp')
| -rw-r--r-- | src/core/hle/service/pctl/module.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/hle/service/pctl/module.cpp b/src/core/hle/service/pctl/module.cpp index 1c3d81143..1e31d05a6 100644 --- a/src/core/hle/service/pctl/module.cpp +++ b/src/core/hle/service/pctl/module.cpp @@ -213,7 +213,7 @@ private: } } - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } void CheckFreeCommunicationPermission(Kernel::HLERequestContext& ctx) { @@ -223,7 +223,7 @@ private: if (!CheckFreeCommunicationPermissionImpl()) { rb.Push(Error::ResultNoFreeCommunication); } else { - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } states.free_communication = true; @@ -234,7 +234,7 @@ private: states.stereo_vision = true; IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } void IsFreeCommunicationAvailable(Kernel::HLERequestContext& ctx) { @@ -244,7 +244,7 @@ private: if (!CheckFreeCommunicationPermissionImpl()) { rb.Push(Error::ResultNoFreeCommunication); } else { - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } } @@ -278,7 +278,7 @@ private: return; } - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) { @@ -289,7 +289,7 @@ private: rb.Push(Error::ResultStereoVisionRestricted); rb.Push(false); } else { - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); rb.Push(true); } } @@ -307,7 +307,7 @@ private: } SetStereoVisionRestrictionImpl(can_use); - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { @@ -321,7 +321,7 @@ private: return; } - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); rb.Push(settings.is_stero_vision_restricted); } @@ -331,7 +331,7 @@ private: states.stereo_vision = false; IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); } struct ApplicationInfo { @@ -368,7 +368,7 @@ void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_PCTL, "called"); IPC::ResponseBuilder rb{ctx, 2, 0, 1}; - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); // TODO(ogniK): Get TID from process rb.PushIpcInterface<IParentalControlService>(system, capability); @@ -378,7 +378,7 @@ void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContext LOG_DEBUG(Service_PCTL, "called"); IPC::ResponseBuilder rb{ctx, 2, 0, 1}; - rb.Push(RESULT_SUCCESS); + rb.Push(ResultSuccess); rb.PushIpcInterface<IParentalControlService>(system, capability); } |
