mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Make the built-in wiitdb files optional
There are some cases where overriding the opening.bnr names isn't desirable, such as when someone has several modded versions of a game that differ in names but not game IDs.
This commit is contained in:
@ -90,6 +90,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
m_osd_messages_checkbox = new wxCheckBox(this, wxID_ANY, _("On-Screen Display Messages"));
|
||||
m_show_active_title_checkbox =
|
||||
new wxCheckBox(this, wxID_ANY, _("Show Active Title in Window Title"));
|
||||
m_use_builtin_title_database_checkbox =
|
||||
new wxCheckBox(this, wxID_ANY, _("Use Built-In Database of Game Names"));
|
||||
m_pause_focus_lost_checkbox = new wxCheckBox(this, wxID_ANY, _("Pause on Focus Lost"));
|
||||
m_interface_lang_choice =
|
||||
new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_interface_lang_strings);
|
||||
@ -103,6 +105,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
this);
|
||||
m_show_active_title_checkbox->Bind(wxEVT_CHECKBOX,
|
||||
&InterfaceConfigPane::OnShowActiveTitleCheckBoxChanged, this);
|
||||
m_use_builtin_title_database_checkbox->Bind(
|
||||
wxEVT_CHECKBOX, &InterfaceConfigPane::OnUseBuiltinTitleDatabaseCheckBoxChanged, this);
|
||||
m_pause_focus_lost_checkbox->Bind(wxEVT_CHECKBOX,
|
||||
&InterfaceConfigPane::OnPauseOnFocusLostCheckBoxChanged, this);
|
||||
m_interface_lang_choice->Bind(wxEVT_CHOICE,
|
||||
@ -119,6 +123,10 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
"writes, video backend and CPU information, and JIT cache clearing."));
|
||||
m_show_active_title_checkbox->SetToolTip(
|
||||
_("Show the active title name in the emulation window title."));
|
||||
m_use_builtin_title_database_checkbox->SetToolTip(
|
||||
_("Read game names from an internal database instead of reading names from the games "
|
||||
"themselves, except for games that aren't in the database. The names in the database are "
|
||||
"often more consistently formatted, especially for Wii games."));
|
||||
m_pause_focus_lost_checkbox->SetToolTip(
|
||||
_("Pauses the emulator when focus is taken away from the emulation window."));
|
||||
m_interface_lang_choice->SetToolTip(
|
||||
@ -147,6 +155,8 @@ void InterfaceConfigPane::InitializeGUI()
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_show_active_title_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_use_builtin_title_database_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(m_pause_focus_lost_checkbox, 0, wxLEFT | wxRIGHT, space5);
|
||||
main_static_box_sizer->AddSpacer(space5);
|
||||
main_static_box_sizer->Add(language_and_theme_grid_sizer, 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
|
||||
@ -168,6 +178,7 @@ void InterfaceConfigPane::LoadGUIValues()
|
||||
m_panic_handlers_checkbox->SetValue(startup_params.bUsePanicHandlers);
|
||||
m_osd_messages_checkbox->SetValue(startup_params.bOnScreenDisplayMessages);
|
||||
m_show_active_title_checkbox->SetValue(startup_params.m_show_active_title);
|
||||
m_use_builtin_title_database_checkbox->SetValue(startup_params.m_use_builtin_title_database);
|
||||
m_pause_focus_lost_checkbox->SetValue(SConfig::GetInstance().m_PauseOnFocusLost);
|
||||
|
||||
const std::string exact_language = SConfig::GetInstance().m_InterfaceLanguage;
|
||||
@ -233,6 +244,12 @@ void InterfaceConfigPane::OnShowActiveTitleCheckBoxChanged(wxCommandEvent&)
|
||||
SConfig::GetInstance().m_show_active_title = m_show_active_title_checkbox->IsChecked();
|
||||
}
|
||||
|
||||
void InterfaceConfigPane::OnUseBuiltinTitleDatabaseCheckBoxChanged(wxCommandEvent&)
|
||||
{
|
||||
SConfig::GetInstance().m_use_builtin_title_database =
|
||||
m_use_builtin_title_database_checkbox->IsChecked();
|
||||
}
|
||||
|
||||
void InterfaceConfigPane::OnInterfaceLanguageChoiceChanged(wxCommandEvent& event)
|
||||
{
|
||||
if (SConfig::GetInstance().m_InterfaceLanguage !=
|
||||
|
Reference in New Issue
Block a user