summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2024-06-14 15:38:45 -0400
committerGitHub <noreply@github.com>2024-06-14 15:38:45 -0400
commit4502b60f718a89e5104735b0e2be2b263a5523e4 (patch)
treecaf808e780958070e609d4e573281b7cfd5e1f47 /Source
parentb0f8520a3d8fc39bbd4364f9c382b97363566936 (diff)
parentfe517ad2c6e28e4e2f3b400016fbc679efc2b9e0 (diff)
Merge pull request #12852 from LillyJadeKatrin/retroachievements-speed-limit-fix
Remove Extra Speed Limit Message
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/HotkeyScheduler.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp
index 10f7540ca7..09410ebc7f 100644
--- a/Source/Core/DolphinQt/HotkeyScheduler.cpp
+++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp
@@ -472,9 +472,14 @@ void HotkeyScheduler::Run()
auto ShowEmulationSpeed = []() {
const float emulation_speed = Config::Get(Config::MAIN_EMULATION_SPEED);
- OSD::AddMessage(emulation_speed <= 0 ?
- "Speed Limit: Unlimited" :
- fmt::format("Speed Limit: {}%", std::lround(emulation_speed * 100.f)));
+ if (!AchievementManager::GetInstance().IsHardcoreModeActive() ||
+ Config::Get(Config::MAIN_EMULATION_SPEED) >= 1.0f ||
+ Config::Get(Config::MAIN_EMULATION_SPEED) <= 0.0f)
+ {
+ OSD::AddMessage(emulation_speed <= 0 ? "Speed Limit: Unlimited" :
+ fmt::format("Speed Limit: {}%",
+ std::lround(emulation_speed * 100.f)));
+ }
};
if (IsHotkey(HK_DECREASE_EMULATION_SPEED))