Qt/GameConfigWidget: Add reverse argument for {Save,Load}CheckBox

In order to not hard code `if (key == "FastDiscSpeed")`
This commit is contained in:
Martino Fontana
2023-07-24 20:12:32 +02:00
parent 0a2afa48b7
commit 0892998af1
2 changed files with 13 additions and 28 deletions

View File

@ -35,8 +35,10 @@ private:
void LoadSettings();
void SaveSettings();
void SaveCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key);
void LoadCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key);
void SaveCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key,
bool reverse = false);
void LoadCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key,
bool reverse = false);
QString m_gameini_sys_path;
QString m_gameini_local_path;