AchievementManager: Improve error message for repeated pausing

This commit is contained in:
Admiral H. Curtiss 2024-07-14 23:03:24 +02:00
parent a0fc8e6b13
commit 7a36d5373a
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 2 additions and 3 deletions

View File

@ -295,10 +295,9 @@ bool AchievementManager::CanPause()
bool can_pause = rc_client_can_pause(m_client, &frames_to_next_pause); bool can_pause = rc_client_can_pause(m_client, &frames_to_next_pause);
if (!can_pause) if (!can_pause)
{ {
OSD::AddMessage("Cannot spam pausing in hardcore mode.", OSD::Duration::VERY_LONG,
OSD::Color::RED);
OSD::AddMessage( OSD::AddMessage(
fmt::format("Can pause in {} seconds.", fmt::format("RetroAchievements Hardcore Mode:\n"
"Cannot pause until another {:.2f} seconds have passed.",
static_cast<float>(frames_to_next_pause) / static_cast<float>(frames_to_next_pause) /
Core::System::GetInstance().GetVideoInterface().GetTargetRefreshRate()), Core::System::GetInstance().GetVideoInterface().GetTargetRefreshRate()),
OSD::Duration::VERY_LONG, OSD::Color::RED); OSD::Duration::VERY_LONG, OSD::Color::RED);