libretro: disable popups by default

This commit is contained in:
Craig Carnell committed 2026-10-23 09:39:47 +01:00
1 parent 5466da350f
commit 84954d9926
3 files changed
+20 -3

No files matched your search

+4 -1
View File
@@ -305,7 +305,10 @@ bool retro_load_game(const struct retro_game_info* game)
{
// Log the message instead of showing a popup
WARN_LOG_FMT(COMMON, "Suppressed popup: {} - {}", caption, text);
Libretro::Log::LogFrontEnd(style, caption, text, 2000);
if (Libretro::GetOption<bool>(retroarch_core::ENABLE_LOG_POPUPS,
/*def=*/false))
Libretro::Log::LogFrontEnd(style, caption, text, 2000);
return true; // Always "continue"
});
@@ -1969,6 +1969,20 @@ static struct retro_core_option_v2_definition option_defs[] = {
"26760"
},
#endif
{
Libretro::Options::retroarch_core::ENABLE_LOG_POPUPS,
"Interface > Logging > Popups",
"Popup Logging",
"Enable Popup log messages.",
nullptr,
CATEGORY_RETROARCH_CORE,
{
{ "disabled", nullptr },
{ "enabled", nullptr },
{ nullptr, nullptr }
},
"disabled"
},
{ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, {{0}}, nullptr }
};
+2 -2
View File
@@ -354,8 +354,8 @@ namespace retroarch_core {
constexpr const char ENABLE_LIBRETRO_VFS[] = "dolphin_libretro_vfs_enabled";
constexpr const char ENABLE_DEFAULT_MOUSE_BINDINGS[] = "dolphin_default_mouse_bindings_enabled";
} // namespace wiimote
constexpr const char ENABLE_LOG_POPUPS[] = "dolphin_log_popups_enabled";
} // namespace retroarch_core
// ======================================================
// Wiimote (DSU)