mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 03:44:26 +00:00
Merge pull request #5673 from sephiroth99/qt2analytics
DolphinQt2: fix compile error with analytics disabled
This commit is contained in:
commit
5111fc6e52
@ -142,7 +142,9 @@ void GeneralPane::LoadConfig()
|
|||||||
{
|
{
|
||||||
auto& settings = Settings::Instance();
|
auto& settings = Settings::Instance();
|
||||||
m_checkbox_force_ntsc->setChecked(settings.GetForceNTSCJ());
|
m_checkbox_force_ntsc->setChecked(settings.GetForceNTSCJ());
|
||||||
|
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||||
m_checkbox_enable_analytics->setChecked(settings.GetAnalyticsEnabled());
|
m_checkbox_enable_analytics->setChecked(settings.GetAnalyticsEnabled());
|
||||||
|
#endif
|
||||||
m_checkbox_dualcore->setChecked(SConfig::GetInstance().bCPUThread);
|
m_checkbox_dualcore->setChecked(SConfig::GetInstance().bCPUThread);
|
||||||
m_checkbox_cheats->setChecked(SConfig::GetInstance().bEnableCheats);
|
m_checkbox_cheats->setChecked(SConfig::GetInstance().bEnableCheats);
|
||||||
int selection = qRound(settings.GetEmulationSpeed() * 10);
|
int selection = qRound(settings.GetEmulationSpeed() * 10);
|
||||||
@ -173,7 +175,9 @@ void GeneralPane::OnSaveConfig()
|
|||||||
{
|
{
|
||||||
auto& settings = Settings::Instance();
|
auto& settings = Settings::Instance();
|
||||||
settings.SetForceNTSCJ(m_checkbox_force_ntsc->isChecked());
|
settings.SetForceNTSCJ(m_checkbox_force_ntsc->isChecked());
|
||||||
|
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||||
settings.SetAnalyticsEnabled(m_checkbox_enable_analytics->isChecked());
|
settings.SetAnalyticsEnabled(m_checkbox_enable_analytics->isChecked());
|
||||||
|
#endif
|
||||||
SConfig::GetInstance().bCPUThread = m_checkbox_dualcore->isChecked();
|
SConfig::GetInstance().bCPUThread = m_checkbox_dualcore->isChecked();
|
||||||
SConfig::GetInstance().bEnableCheats = m_checkbox_cheats->isChecked();
|
SConfig::GetInstance().bEnableCheats = m_checkbox_cheats->isChecked();
|
||||||
SConfig::GetInstance().m_EmulationSpeed = m_combobox_speedlimit->currentIndex() * 0.1f;
|
SConfig::GetInstance().m_EmulationSpeed = m_combobox_speedlimit->currentIndex() * 0.1f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user