Skip to content

Commit

Permalink
System: Simplify CD speedup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jan 23, 2025
1 parent df88227 commit 4da1f61
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4746,30 +4746,10 @@ void System::WarnAboutUnsafeSettings()
ICON_EMOJI_WARNING, TRANSLATE_FS("System", "CPU clock speed is set to {}% ({} / {}). This may crash games."),
g_settings.GetCPUOverclockPercent(), g_settings.cpu_overclock_numerator, g_settings.cpu_overclock_denominator);
}
if (g_settings.cdrom_read_speedup != 1)
{
TinyString speed;
if (g_settings.cdrom_read_speedup == 0)
speed = TRANSLATE_SV("System", "Maximum");
else
speed.format("{}x", g_settings.cdrom_read_speedup);
append_format(ICON_EMOJI_WARNING, TRANSLATE_FS("System", "CD-ROM read speedup set to {}. This may crash games."),
speed);
}
if (g_settings.cdrom_seek_speedup != 1)
{
TinyString speed;
if (g_settings.cdrom_seek_speedup == 0)
speed = TRANSLATE_SV("System", "Maximum");
else
speed.format("{}x", g_settings.cdrom_seek_speedup);
append_format(ICON_EMOJI_WARNING, TRANSLATE_FS("System", "CD-ROM seek speedup set to {}. This may crash games."),
speed);
}
if (g_settings.cdrom_read_speedup != 1 || g_settings.cdrom_seek_speedup != 1)
append(ICON_EMOJI_WARNING, TRANSLATE_SV("System", "CD-ROM read/seek speedup is enabled. This may crash games."));
if (g_settings.gpu_force_video_timing != ForceVideoTimingMode::Disabled)
{
append(ICON_FA_TV, TRANSLATE_SV("System", "Force frame timings is enabled. Games may run at incorrect speeds."));
}
if (!g_settings.IsUsingSoftwareRenderer())
{
if (g_settings.gpu_multisamples != 1)
Expand Down

0 comments on commit 4da1f61

Please # to comment.