mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-05 01:42:41 +00:00
Config: Port Input setting to new config system.
This commit is contained in:
parent
533116093e
commit
9c4b2b65b4
8 changed files with 15 additions and 26 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/Core.h"
|
||||
|
||||
#include "DolphinQt/Config/ControllerInterface/ControllerInterfaceWindow.h"
|
||||
|
@ -57,11 +57,11 @@ void CommonControllersWidget::OnControllerInterfaceConfigure()
|
|||
|
||||
void CommonControllersWidget::LoadSettings()
|
||||
{
|
||||
m_common_bg_input->setChecked(SConfig::GetInstance().m_BackgroundInput);
|
||||
m_common_bg_input->setChecked(Config::Get(Config::MAIN_INPUT_BACKGROUND_INPUT));
|
||||
}
|
||||
|
||||
void CommonControllersWidget::SaveSettings()
|
||||
{
|
||||
SConfig::GetInstance().m_BackgroundInput = m_common_bg_input->isChecked();
|
||||
SConfig::GetInstance().SaveSettings();
|
||||
Config::SetBaseOrCurrent(Config::MAIN_INPUT_BACKGROUND_INPUT, m_common_bg_input->isChecked());
|
||||
Config::Save();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue