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/apm | |
| 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/apm')
| -rw-r--r-- | src/core/hle/service/apm/interface.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp index 0bff97a37..d69ddd135 100644 --- a/src/core/hle/service/apm/interface.cpp +++ b/src/core/hle/service/apm/interface.cpp | |||
| @@ -33,7 +33,7 @@ private: | |||
| 33 | controller.SetPerformanceConfiguration(mode, config); | 33 | controller.SetPerformanceConfiguration(mode, config); |
| 34 | 34 | ||
| 35 | IPC::ResponseBuilder rb{ctx, 2}; | 35 | IPC::ResponseBuilder rb{ctx, 2}; |
| 36 | rb.Push(RESULT_SUCCESS); | 36 | rb.Push(ResultSuccess); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { | 39 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { |
| @@ -43,7 +43,7 @@ private: | |||
| 43 | LOG_DEBUG(Service_APM, "called mode={}", mode); | 43 | LOG_DEBUG(Service_APM, "called mode={}", mode); |
| 44 | 44 | ||
| 45 | IPC::ResponseBuilder rb{ctx, 3}; | 45 | IPC::ResponseBuilder rb{ctx, 3}; |
| 46 | rb.Push(RESULT_SUCCESS); | 46 | rb.Push(ResultSuccess); |
| 47 | rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode)); | 47 | rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode)); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| @@ -67,7 +67,7 @@ void APM::OpenSession(Kernel::HLERequestContext& ctx) { | |||
| 67 | LOG_DEBUG(Service_APM, "called"); | 67 | LOG_DEBUG(Service_APM, "called"); |
| 68 | 68 | ||
| 69 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 69 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 70 | rb.Push(RESULT_SUCCESS); | 70 | rb.Push(ResultSuccess); |
| 71 | rb.PushIpcInterface<ISession>(system, controller); | 71 | rb.PushIpcInterface<ISession>(system, controller); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| @@ -82,7 +82,7 @@ void APM::IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx) { | |||
| 82 | LOG_WARNING(Service_APM, "(STUBBED) called"); | 82 | LOG_WARNING(Service_APM, "(STUBBED) called"); |
| 83 | 83 | ||
| 84 | IPC::ResponseBuilder rb{ctx, 3}; | 84 | IPC::ResponseBuilder rb{ctx, 3}; |
| 85 | rb.Push(RESULT_SUCCESS); | 85 | rb.Push(ResultSuccess); |
| 86 | rb.Push(false); | 86 | rb.Push(false); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| @@ -110,7 +110,7 @@ void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) { | |||
| 110 | LOG_DEBUG(Service_APM, "called"); | 110 | LOG_DEBUG(Service_APM, "called"); |
| 111 | 111 | ||
| 112 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 112 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 113 | rb.Push(RESULT_SUCCESS); | 113 | rb.Push(ResultSuccess); |
| 114 | rb.PushIpcInterface<ISession>(system, controller); | 114 | rb.PushIpcInterface<ISession>(system, controller); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| @@ -123,14 +123,14 @@ void APM_Sys::SetCpuBoostMode(Kernel::HLERequestContext& ctx) { | |||
| 123 | controller.SetFromCpuBoostMode(mode); | 123 | controller.SetFromCpuBoostMode(mode); |
| 124 | 124 | ||
| 125 | IPC::ResponseBuilder rb{ctx, 2}; | 125 | IPC::ResponseBuilder rb{ctx, 2}; |
| 126 | rb.Push(RESULT_SUCCESS); | 126 | rb.Push(ResultSuccess); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | void APM_Sys::GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx) { | 129 | void APM_Sys::GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx) { |
| 130 | LOG_DEBUG(Service_APM, "called"); | 130 | LOG_DEBUG(Service_APM, "called"); |
| 131 | 131 | ||
| 132 | IPC::ResponseBuilder rb{ctx, 3}; | 132 | IPC::ResponseBuilder rb{ctx, 3}; |
| 133 | rb.Push(RESULT_SUCCESS); | 133 | rb.Push(ResultSuccess); |
| 134 | rb.PushEnum( | 134 | rb.PushEnum( |
| 135 | controller.GetCurrentPerformanceConfiguration(controller.GetCurrentPerformanceMode())); | 135 | controller.GetCurrentPerformanceConfiguration(controller.GetCurrentPerformanceMode())); |
| 136 | } | 136 | } |