diff options
author | bunnei <bunneidev@gmail.com> | 2022-07-16 15:32:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 15:32:52 -0700 |
commit | 7d66f8339e4243c74c54b43cfbc3e944fbecb3e8 (patch) | |
tree | 87768226bd5f30bc8b980eb07ef6f94b6878c5c5 /src/yuzu/configuration/config.h | |
parent | b8813edc51e6bffb8c7e724d848ab45887a93687 (diff) | |
parent | 99fbdaf75b18dd4cdaad1e93fa2a4ad82b0591aa (diff) |
Merge pull request #8593 from merryhime/ranged-setting-T
common/setting: Make ranged a property of the type
Diffstat (limited to 'src/yuzu/configuration/config.h')
-rw-r--r-- | src/yuzu/configuration/config.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.h index 9ca878d23..d511b3dbd 100644 --- a/src/yuzu/configuration/config.h +++ b/src/yuzu/configuration/config.h @@ -159,8 +159,8 @@ private: * * @param The setting */ - template <typename Type> - void ReadGlobalSetting(Settings::SwitchableSetting<Type>& setting); + template <typename Type, bool ranged> + void ReadGlobalSetting(Settings::SwitchableSetting<Type, ranged>& setting); /** * Sets a value to the qt_config using the setting's label and default value. If the config is a @@ -168,8 +168,8 @@ private: * * @param The setting */ - template <typename Type> - void WriteGlobalSetting(const Settings::SwitchableSetting<Type>& setting); + template <typename Type, bool ranged> + void WriteGlobalSetting(const Settings::SwitchableSetting<Type, ranged>& setting); /** * Reads a value from the qt_config using the setting's label and default value and applies the @@ -177,15 +177,15 @@ private: * * @param The setting */ - template <typename Type> - void ReadBasicSetting(Settings::Setting<Type>& setting); + template <typename Type, bool ranged> + void ReadBasicSetting(Settings::Setting<Type, ranged>& setting); /** Sets a value from the setting in the qt_config using the setting's label and default value. * * @param The setting */ - template <typename Type> - void WriteBasicSetting(const Settings::Setting<Type>& setting); + template <typename Type, bool ranged> + void WriteBasicSetting(const Settings::Setting<Type, ranged>& setting); ConfigType type; std::unique_ptr<QSettings> qt_config; |