mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 12:37:59 -10:00
libretro: disable popups by default
This commit is contained in:
1 parent
5466da350f
commit
84954d9926
3 files changed
+20
-3
No files matched your search
@@ -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 }
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user