diff options
| -rw-r--r-- | src/core/hle/service/apm/interface.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp index 751d73f8d..ce943d829 100644 --- a/src/core/hle/service/apm/interface.cpp +++ b/src/core/hle/service/apm/interface.cpp | |||
| @@ -20,6 +20,21 @@ public: | |||
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | private: | 22 | private: |
| 23 | enum class PerformanceConfiguration : u32 { | ||
| 24 | Config1 = 0x00010000, | ||
| 25 | Config2 = 0x00010001, | ||
| 26 | Config3 = 0x00010002, | ||
| 27 | Config4 = 0x00020000, | ||
| 28 | Config5 = 0x00020001, | ||
| 29 | Config6 = 0x00020002, | ||
| 30 | Config7 = 0x00020003, | ||
| 31 | Config8 = 0x00020004, | ||
| 32 | Config9 = 0x00020005, | ||
| 33 | Config10 = 0x00020006, | ||
| 34 | Config11 = 0x92220007, | ||
| 35 | Config12 = 0x92220008, | ||
| 36 | }; | ||
| 37 | |||
| 23 | void SetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { | 38 | void SetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { |
| 24 | IPC::RequestParser rp{ctx}; | 39 | IPC::RequestParser rp{ctx}; |
| 25 | 40 | ||
| @@ -40,7 +55,7 @@ private: | |||
| 40 | 55 | ||
| 41 | IPC::ResponseBuilder rb{ctx, 3}; | 56 | IPC::ResponseBuilder rb{ctx, 3}; |
| 42 | rb.Push(RESULT_SUCCESS); | 57 | rb.Push(RESULT_SUCCESS); |
| 43 | rb.Push<u32>(0); // Performance configuration | 58 | rb.Push<u32>(static_cast<u32>(PerformanceConfiguration::Config1)); |
| 44 | 59 | ||
| 45 | LOG_WARNING(Service_APM, "(STUBBED) called mode={}", static_cast<u32>(mode)); | 60 | LOG_WARNING(Service_APM, "(STUBBED) called mode={}", static_cast<u32>(mode)); |
| 46 | } | 61 | } |