summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-21 00:01:19 +0200
committerGitHub <noreply@github.com>2018-07-21 00:01:19 +0200
commit2b7d8623665517048ac9d98409b7d915f1a14abd (patch)
tree6e5291d3abb987afd6fd5ee78e89c15501986df1 /src/core/hle
parentMerge pull request #741 from lioncash/enum (diff)
parentapm: Improve stub for GetPerformanceConfiguration. (diff)
downloadyuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar.gz
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar.bz2
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar.lz
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar.xz
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.tar.zst
yuzu-2b7d8623665517048ac9d98409b7d915f1a14abd.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/apm/interface.cpp17
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:
}
private:
+ enum class PerformanceConfiguration : u32 {
+ Config1 = 0x00010000,
+ Config2 = 0x00010001,
+ Config3 = 0x00010002,
+ Config4 = 0x00020000,
+ Config5 = 0x00020001,
+ Config6 = 0x00020002,
+ Config7 = 0x00020003,
+ Config8 = 0x00020004,
+ Config9 = 0x00020005,
+ Config10 = 0x00020006,
+ Config11 = 0x92220007,
+ Config12 = 0x92220008,
+ };
+
void SetPerformanceConfiguration(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
@@ -40,7 +55,7 @@ private:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u32>(0); // Performance configuration
+ rb.Push<u32>(static_cast<u32>(PerformanceConfiguration::Config1));
LOG_WARNING(Service_APM, "(STUBBED) called mode={}", static_cast<u32>(mode));
}