diff options
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu_cmd/config.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index fc4744fb0..903e02297 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -90,17 +90,17 @@ static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> | |||
| 90 | }}; | 90 | }}; |
| 91 | 91 | ||
| 92 | template <> | 92 | template <> |
| 93 | void Config::ReadSetting(const std::string& group, Settings::BasicSetting<std::string>& setting) { | 93 | void Config::ReadSetting(const std::string& group, Settings::Setting<std::string>& setting) { |
| 94 | setting = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault()); | 94 | setting = sdl2_config->Get(group, setting.GetLabel(), setting.GetDefault()); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | template <> | 97 | template <> |
| 98 | void Config::ReadSetting(const std::string& group, Settings::BasicSetting<bool>& setting) { | 98 | void Config::ReadSetting(const std::string& group, Settings::Setting<bool>& setting) { |
| 99 | setting = sdl2_config->GetBoolean(group, setting.GetLabel(), setting.GetDefault()); | 99 | setting = sdl2_config->GetBoolean(group, setting.GetLabel(), setting.GetDefault()); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | template <typename Type> | 102 | template <typename Type> |
| 103 | void Config::ReadSetting(const std::string& group, Settings::BasicSetting<Type>& setting) { | 103 | void Config::ReadSetting(const std::string& group, Settings::Setting<Type>& setting) { |
| 104 | setting = static_cast<Type>(sdl2_config->GetInteger(group, setting.GetLabel(), | 104 | setting = static_cast<Type>(sdl2_config->GetInteger(group, setting.GetLabel(), |
| 105 | static_cast<long>(setting.GetDefault()))); | 105 | static_cast<long>(setting.GetDefault()))); |
| 106 | } | 106 | } |
diff --git a/src/yuzu_cmd/config.h b/src/yuzu_cmd/config.h index f61ba23ec..ccf77d668 100644 --- a/src/yuzu_cmd/config.h +++ b/src/yuzu_cmd/config.h | |||
| @@ -28,11 +28,11 @@ public: | |||
| 28 | 28 | ||
| 29 | private: | 29 | private: |
| 30 | /** | 30 | /** |
| 31 | * Applies a value read from the sdl2_config to a BasicSetting. | 31 | * Applies a value read from the sdl2_config to a Setting. |
| 32 | * | 32 | * |
| 33 | * @param group The name of the INI group | 33 | * @param group The name of the INI group |
| 34 | * @param setting The yuzu setting to modify | 34 | * @param setting The yuzu setting to modify |
| 35 | */ | 35 | */ |
| 36 | template <typename Type> | 36 | template <typename Type> |
| 37 | void ReadSetting(const std::string& group, Settings::BasicSetting<Type>& setting); | 37 | void ReadSetting(const std::string& group, Settings::Setting<Type>& setting); |
| 38 | }; | 38 | }; |