Browse Source
Merge pull request #11599 from lat9nq/aud-bknd-fix
settings_setting: Read audio engine
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/common/settings_setting.h
|
|
|
@ -187,6 +187,8 @@ public: |
|
|
|
this->SetValue(input == "true"); |
|
|
|
} else if constexpr (std::is_same_v<Type, float>) { |
|
|
|
this->SetValue(std::stof(input)); |
|
|
|
} else if constexpr (std::is_same_v<Type, AudioEngine>) { |
|
|
|
this->SetValue(ToEnum<AudioEngine>(input)); |
|
|
|
} else { |
|
|
|
this->SetValue(static_cast<Type>(std::stoll(input))); |
|
|
|
} |
|
|
|
|