mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
Merge pull request #11599 from lat9nq/aud-bknd-fix
settings_setting: Read audio engine
This commit is contained in:
commit
195d0a93b5
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,8 @@ public:
|
||||||
this->SetValue(input == "true");
|
this->SetValue(input == "true");
|
||||||
} else if constexpr (std::is_same_v<Type, float>) {
|
} else if constexpr (std::is_same_v<Type, float>) {
|
||||||
this->SetValue(std::stof(input));
|
this->SetValue(std::stof(input));
|
||||||
|
} else if constexpr (std::is_same_v<Type, AudioEngine>) {
|
||||||
|
this->SetValue(ToEnum<AudioEngine>(input));
|
||||||
} else {
|
} else {
|
||||||
this->SetValue(static_cast<Type>(std::stoll(input)));
|
this->SetValue(static_cast<Type>(std::stoll(input)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue