mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
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.
This commit is contained in:
parent
6c5ceaa06d
commit
fe517ad2c6
@ -472,9 +472,14 @@ void HotkeyScheduler::Run()
|
|||||||
|
|
||||||
auto ShowEmulationSpeed = []() {
|
auto ShowEmulationSpeed = []() {
|
||||||
const float emulation_speed = Config::Get(Config::MAIN_EMULATION_SPEED);
|
const float emulation_speed = Config::Get(Config::MAIN_EMULATION_SPEED);
|
||||||
OSD::AddMessage(emulation_speed <= 0 ?
|
if (!AchievementManager::GetInstance().IsHardcoreModeActive() ||
|
||||||
"Speed Limit: Unlimited" :
|
Config::Get(Config::MAIN_EMULATION_SPEED) >= 1.0f ||
|
||||||
fmt::format("Speed Limit: {}%", std::lround(emulation_speed * 100.f)));
|
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))
|
if (IsHotkey(HK_DECREASE_EMULATION_SPEED))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user