mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #5283 from spycrab/issue_9622
Make ENABLE_ANALYTICS=0 do something (Issue #9622)
This commit is contained in:
@ -57,12 +57,14 @@ void GeneralConfigPane::InitializeGUI()
|
||||
m_dual_core_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Dual Core (speedup)"));
|
||||
m_cheats_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Cheats"));
|
||||
m_force_ntscj_checkbox = new wxCheckBox(this, wxID_ANY, _("Force Console as NTSC-J"));
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
m_analytics_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Usage Statistics Reporting"));
|
||||
#ifdef __APPLE__
|
||||
m_analytics_new_id = new wxButton(this, wxID_ANY, _("Generate a New Statistics Identity"),
|
||||
wxDefaultPosition, wxSize(350, 25));
|
||||
#else
|
||||
m_analytics_new_id = new wxButton(this, wxID_ANY, _("Generate a New Statistics Identity"));
|
||||
#endif
|
||||
#endif
|
||||
m_throttler_choice =
|
||||
new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_throttler_array_string);
|
||||
@ -77,6 +79,7 @@ void GeneralConfigPane::InitializeGUI()
|
||||
m_force_ntscj_checkbox->SetToolTip(
|
||||
_("Forces NTSC-J mode for using the Japanese ROM font.\nIf left unchecked, Dolphin defaults "
|
||||
"to NTSC-U and automatically enables this setting when playing Japanese games."));
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
m_analytics_checkbox->SetToolTip(
|
||||
_("Enables the collection and sharing of usage statistics data with the Dolphin development "
|
||||
"team. This data is used to improve the emulator and help us understand how our users "
|
||||
@ -85,6 +88,8 @@ void GeneralConfigPane::InitializeGUI()
|
||||
_("Usage statistics reporting uses a unique random per-machine identifier to distinguish "
|
||||
"users from one another. This button generates a new random identifier for this machine "
|
||||
"which is dissociated from the previous one."));
|
||||
#endif
|
||||
|
||||
m_throttler_choice->SetToolTip(_("Limits the emulation speed to the specified percentage.\nNote "
|
||||
"that raising or lowering the emulation speed will also raise "
|
||||
"or lower the audio pitch unless audio stretching is enabled."));
|
||||
@ -108,6 +113,7 @@ void GeneralConfigPane::InitializeGUI()
|
||||
basic_settings_sizer->AddSpacer(space5);
|
||||
basic_settings_sizer->Add(throttler_sizer);
|
||||
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
wxStaticBoxSizer* const analytics_sizer =
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, _("Usage Statistics Reporting Settings"));
|
||||
analytics_sizer->AddSpacer(space5);
|
||||
@ -115,6 +121,7 @@ void GeneralConfigPane::InitializeGUI()
|
||||
analytics_sizer->AddSpacer(space5);
|
||||
analytics_sizer->Add(m_analytics_new_id, 0, wxLEFT | wxRIGHT, space5);
|
||||
analytics_sizer->AddSpacer(space5);
|
||||
#endif
|
||||
|
||||
wxStaticBoxSizer* const advanced_settings_sizer =
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, _("Advanced Settings"));
|
||||
@ -128,7 +135,9 @@ void GeneralConfigPane::InitializeGUI()
|
||||
main_sizer->AddSpacer(space5);
|
||||
main_sizer->Add(basic_settings_sizer, 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
|
||||
main_sizer->AddSpacer(space5);
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
main_sizer->Add(analytics_sizer, 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
|
||||
#endif
|
||||
main_sizer->AddSpacer(space5);
|
||||
main_sizer->Add(advanced_settings_sizer, 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
|
||||
main_sizer->AddSpacer(space5);
|
||||
@ -143,7 +152,11 @@ void GeneralConfigPane::LoadGUIValues()
|
||||
m_dual_core_checkbox->SetValue(startup_params.bCPUThread);
|
||||
m_cheats_checkbox->SetValue(startup_params.bEnableCheats);
|
||||
m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ);
|
||||
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
m_analytics_checkbox->SetValue(startup_params.m_analytics_enabled);
|
||||
#endif
|
||||
|
||||
u32 selection = std::lround(startup_params.m_EmulationSpeed * 10.0f);
|
||||
if (selection < m_throttler_array_string.size())
|
||||
m_throttler_choice->SetSelection(selection);
|
||||
@ -168,9 +181,11 @@ void GeneralConfigPane::BindEvents()
|
||||
this);
|
||||
m_force_ntscj_checkbox->Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreNotRunning);
|
||||
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
m_analytics_checkbox->Bind(wxEVT_CHECKBOX, &GeneralConfigPane::OnAnalyticsCheckBoxChanged, this);
|
||||
|
||||
m_analytics_new_id->Bind(wxEVT_BUTTON, &GeneralConfigPane::OnAnalyticsNewIdButtonClick, this);
|
||||
#endif
|
||||
|
||||
m_throttler_choice->Bind(wxEVT_CHOICE, &GeneralConfigPane::OnThrottlerChoiceChanged, this);
|
||||
|
||||
|
Reference in New Issue
Block a user