diff options
author | wolf109909 <84360921+wolf109909@users.noreply.github.com> | 2024-05-21 21:50:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 15:50:22 +0200 |
commit | 220b7a1bf7915a336b9c2a08806e60c1c32bde8e (patch) | |
tree | f63256fb3c66e0a0c3b9819478fcabd593c9b8ce | |
parent | ab653555f6aa0ec57e1b23a590fb3061929fdc30 (diff) | |
download | NorthstarLauncher-1.24.5-rc2.tar.gz NorthstarLauncher-1.24.5-rc2.zip |
Fix engine error crash caused by language detection hooks (#699)v1.24.5-rc2v1.24.5
Previous logic would always return `true`
-rw-r--r-- | primedev/client/languagehooks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/primedev/client/languagehooks.cpp b/primedev/client/languagehooks.cpp index 35ca5659..0146d1d4 100644 --- a/primedev/client/languagehooks.cpp +++ b/primedev/client/languagehooks.cpp @@ -41,7 +41,7 @@ std::vector<std::string> file_list(fs::path dir, std::regex ext_pattern) std::string GetAnyInstalledAudioLanguage() { for (const auto& lang : file_list("r2\\sound\\", std::regex(".*?general_([a-z]+)_patch_1\\.mstr"))) - if (lang != "general" || lang != "") + if (lang != "general" && lang != "" && lang != "stream") return lang; return "NO LANGUAGE DETECTED"; } |