mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 14:25:38 +00:00
libretro: Add option to hide OSD messages
This commit is contained in:
parent
e147327459
commit
3392839795
|
@ -200,6 +200,9 @@ std::string LibretroHostInterface::GetStringSettingValue(const char* section, co
|
|||
|
||||
void LibretroHostInterface::AddOSDMessage(std::string message, float duration /*= 2.0f*/)
|
||||
{
|
||||
if (!g_settings.display_show_osd_messages)
|
||||
return;
|
||||
|
||||
retro_message msg = {};
|
||||
msg.msg = message.c_str();
|
||||
msg.frames = static_cast<u32>(duration * (System::IsShutdown() ? 60.0f : System::GetThrottleFrequency()));
|
||||
|
@ -445,7 +448,7 @@ void LibretroHostInterface::OnSystemDestroyed()
|
|||
m_using_hardware_renderer = false;
|
||||
}
|
||||
|
||||
static std::array<retro_core_option_definition, 36> s_option_definitions = {{
|
||||
static std::array<retro_core_option_definition, 37> s_option_definitions = {{
|
||||
{"duckstation_Console.Region",
|
||||
"Console Region",
|
||||
"Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.",
|
||||
|
@ -690,6 +693,11 @@ static std::array<retro_core_option_definition, 36> s_option_definitions = {{
|
|||
"Automatically enables analog mode in supported controllers at start/reset.",
|
||||
{{"true", "Enabled"}, {"false", "Disabled"}},
|
||||
"false"},
|
||||
{"duckstation_Display.ShowOSDMessages",
|
||||
"Display OSD Messages",
|
||||
"Shows on-screen messages generated by the core.",
|
||||
{{"true", "Enabled"}, {"false", "Disabled"}},
|
||||
"true"},
|
||||
{"duckstation_Logging.LogLevel",
|
||||
"Log Level",
|
||||
"Sets the level of information logged by the core.",
|
||||
|
|
Loading…
Reference in a new issue