From 1911a25a9ffd415cd9d62e9029e5c52a8999d4d7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 17 Mar 2021 00:58:09 +1000 Subject: [PATCH] System: Add warning if CD-ROM read speedup is enabled on startup --- src/core/system.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index 70619811e..ad421801c 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -963,6 +963,14 @@ bool Initialize(bool force_software_renderer) "CPU clock speed is set to %u%% (%u / %u). This may result in instability."), g_settings.GetCPUOverclockPercent(), g_settings.cpu_overclock_numerator, g_settings.cpu_overclock_denominator); } + if (g_settings.cdrom_read_speedup > 1) + { + g_host_interface->AddFormattedOSDMessage( + 10.0f, + g_host_interface->TranslateString( + "OSDMessage", "CD-ROM read speedup set to %ux (effective speed %ux). This may result in instability."), + g_settings.cdrom_read_speedup, g_settings.cdrom_read_speedup * 2); + } UpdateThrottlePeriod(); UpdateMemorySaveStateSettings();