Skip to content

Commit

Permalink
Merge pull request #12852 from LillyJadeKatrin/retroachievements-spee…
Browse files Browse the repository at this point in the history
…d-limit-fix

Remove Extra Speed Limit Message
  • Loading branch information
JMC47 committed Jun 14, 2024
2 parents b0f8520 + fe517ad commit 4502b60
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Source/Core/DolphinQt/HotkeyScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4502b60

Please sign in to comment.