diff options
| author | 2021-05-21 01:05:04 -0400 | |
|---|---|---|
| committer | 2021-06-02 00:39:27 -0400 | |
| commit | 12c1766997f2596b4b1b1a6a411e4f6d56605ee7 (patch) | |
| tree | e718a0f18be8aaf664ebdcd197af513e5a118b72 /src/core/hle/service/pctl | |
| parent | Merge pull request #6395 from lioncash/result-move (diff) | |
| download | yuzu-12c1766997f2596b4b1b1a6a411e4f6d56605ee7.tar.gz yuzu-12c1766997f2596b4b1b1a6a411e4f6d56605ee7.tar.xz yuzu-12c1766997f2596b4b1b1a6a411e4f6d56605ee7.zip | |
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
Diffstat (limited to 'src/core/hle/service/pctl')
| -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: | |||
| 213 | } | 213 | } |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | rb.Push(RESULT_SUCCESS); | 216 | rb.Push(ResultSuccess); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void CheckFreeCommunicationPermission(Kernel::HLERequestContext& ctx) { | 219 | void CheckFreeCommunicationPermission(Kernel::HLERequestContext& ctx) { |
| @@ -223,7 +223,7 @@ private: | |||
| 223 | if (!CheckFreeCommunicationPermissionImpl()) { | 223 | if (!CheckFreeCommunicationPermissionImpl()) { |
| 224 | rb.Push(Error::ResultNoFreeCommunication); | 224 | rb.Push(Error::ResultNoFreeCommunication); |
| 225 | } else { | 225 | } else { |
| 226 | rb.Push(RESULT_SUCCESS); | 226 | rb.Push(ResultSuccess); |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | states.free_communication = true; | 229 | states.free_communication = true; |
| @@ -234,7 +234,7 @@ private: | |||
| 234 | states.stereo_vision = true; | 234 | states.stereo_vision = true; |
| 235 | 235 | ||
| 236 | IPC::ResponseBuilder rb{ctx, 2}; | 236 | IPC::ResponseBuilder rb{ctx, 2}; |
| 237 | rb.Push(RESULT_SUCCESS); | 237 | rb.Push(ResultSuccess); |
| 238 | } | 238 | } |
| 239 | 239 | ||
| 240 | void IsFreeCommunicationAvailable(Kernel::HLERequestContext& ctx) { | 240 | void IsFreeCommunicationAvailable(Kernel::HLERequestContext& ctx) { |
| @@ -244,7 +244,7 @@ private: | |||
| 244 | if (!CheckFreeCommunicationPermissionImpl()) { | 244 | if (!CheckFreeCommunicationPermissionImpl()) { |
| 245 | rb.Push(Error::ResultNoFreeCommunication); | 245 | rb.Push(Error::ResultNoFreeCommunication); |
| 246 | } else { | 246 | } else { |
| 247 | rb.Push(RESULT_SUCCESS); | 247 | rb.Push(ResultSuccess); |
| 248 | } | 248 | } |
| 249 | } | 249 | } |
| 250 | 250 | ||
| @@ -278,7 +278,7 @@ private: | |||
| 278 | return; | 278 | return; |
| 279 | } | 279 | } |
| 280 | 280 | ||
| 281 | rb.Push(RESULT_SUCCESS); | 281 | rb.Push(ResultSuccess); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) { | 284 | void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) { |
| @@ -289,7 +289,7 @@ private: | |||
| 289 | rb.Push(Error::ResultStereoVisionRestricted); | 289 | rb.Push(Error::ResultStereoVisionRestricted); |
| 290 | rb.Push(false); | 290 | rb.Push(false); |
| 291 | } else { | 291 | } else { |
| 292 | rb.Push(RESULT_SUCCESS); | 292 | rb.Push(ResultSuccess); |
| 293 | rb.Push(true); | 293 | rb.Push(true); |
| 294 | } | 294 | } |
| 295 | } | 295 | } |
| @@ -307,7 +307,7 @@ private: | |||
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | SetStereoVisionRestrictionImpl(can_use); | 309 | SetStereoVisionRestrictionImpl(can_use); |
| 310 | rb.Push(RESULT_SUCCESS); | 310 | rb.Push(ResultSuccess); |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { | 313 | void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { |
| @@ -321,7 +321,7 @@ private: | |||
| 321 | return; | 321 | return; |
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | rb.Push(RESULT_SUCCESS); | 324 | rb.Push(ResultSuccess); |
| 325 | rb.Push(settings.is_stero_vision_restricted); | 325 | rb.Push(settings.is_stero_vision_restricted); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| @@ -331,7 +331,7 @@ private: | |||
| 331 | states.stereo_vision = false; | 331 | states.stereo_vision = false; |
| 332 | 332 | ||
| 333 | IPC::ResponseBuilder rb{ctx, 2}; | 333 | IPC::ResponseBuilder rb{ctx, 2}; |
| 334 | rb.Push(RESULT_SUCCESS); | 334 | rb.Push(ResultSuccess); |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | struct ApplicationInfo { | 337 | struct ApplicationInfo { |
| @@ -368,7 +368,7 @@ void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { | |||
| 368 | LOG_DEBUG(Service_PCTL, "called"); | 368 | LOG_DEBUG(Service_PCTL, "called"); |
| 369 | 369 | ||
| 370 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 370 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 371 | rb.Push(RESULT_SUCCESS); | 371 | rb.Push(ResultSuccess); |
| 372 | // TODO(ogniK): Get TID from process | 372 | // TODO(ogniK): Get TID from process |
| 373 | 373 | ||
| 374 | rb.PushIpcInterface<IParentalControlService>(system, capability); | 374 | rb.PushIpcInterface<IParentalControlService>(system, capability); |
| @@ -378,7 +378,7 @@ void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContext | |||
| 378 | LOG_DEBUG(Service_PCTL, "called"); | 378 | LOG_DEBUG(Service_PCTL, "called"); |
| 379 | 379 | ||
| 380 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 380 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 381 | rb.Push(RESULT_SUCCESS); | 381 | rb.Push(ResultSuccess); |
| 382 | rb.PushIpcInterface<IParentalControlService>(system, capability); | 382 | rb.PushIpcInterface<IParentalControlService>(system, capability); |
| 383 | } | 383 | } |
| 384 | 384 | ||