Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Source/Core/DolphinLibretro/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,13 @@ 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);

if (Libretro::GetOption<bool>(retroarch_core::ENABLE_LOG_POPUPS,
/*def=*/false))
const bool bluetooth_error =
text && std::strstr(text, "Could not find any usable Bluetooth USB adapter") != nullptr;

if (bluetooth_error ||
Libretro::GetOption<bool>(retroarch_core::ENABLE_LOG_POPUPS, /*def=*/false))
Libretro::Log::LogFrontEnd(style, caption, text, 2000);

return true; // Always "continue"
});

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinLibretro/Common/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ static struct retro_core_option_v2_definition option_defs[] = {
Libretro::Options::retroarch_core::ENABLE_LOG_POPUPS,
"Interface > Logging > Popups",
"Popup Logging",
"Enable Popup log messages.",
"Enable Popup log messages. Some messages will still appear despite setting this to false, such as when dolphin cannot find a suitable Bluetooth USB adapter (if passthrough enabled), as this leads to a failed boot.",
nullptr,
CATEGORY_RETROARCH_CORE,
{
Expand Down
Loading