diff options
| author | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2024-06-12 05:28:43 -0400 |
|---|---|---|
| committer | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2024-06-12 06:39:46 -0400 |
| commit | fe517ad2c6e28e4e2f3b400016fbc679efc2b9e0 (patch) | |
| tree | c288fd73e67c3d11e3d63ef6898747b848808de5 /Source/Core | |
| parent | 6c5ceaa06d26eae901a6baff0efa869cb75415aa (diff) | |
Remove Extra Speed Limit Message
Prior to this change, attempting to decrease the speed limit below 100% in hardmode would display the new attempted speed and then warn that the speed can not be decreased below 100%; this disables that first message under those conditions.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/HotkeyScheduler.cpp | 11 |
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)) |
