소스 검색

Merge pull request #11599 from lat9nq/aud-bknd-fix

settings_setting: Read audio engine
liamwhite 2 년 전
부모
커밋
195d0a93b5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/common/settings_setting.h

+ 2 - 0
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)));
             }