From 9a47e40dd666ad7b49c3ae94c3eac108e166aab8 Mon Sep 17 00:00:00 2001 From: Schplee Date: Sun, 18 Nov 2018 19:21:17 -0800 Subject: Correctly sets default system language for yuzu-CLI (#1727) * Correctly sets default system language for yuzu-CLI A user reported that yuzu_cmd runs games in Japanese rather than the correct default of English (like yuzu-qt does correctly), this change fixes that. * fix clang issue deleted whitespace --- src/yuzu_cmd/config.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 9cc409fd5..96f1ef636 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -139,6 +139,8 @@ void Config::ReadValues() { Settings::values.rng_seed = std::nullopt; } + Settings::values.language_index = sdl2_config->GetInteger("System", "language_index", 1); + // Miscellaneous Settings::values.log_filter = sdl2_config->Get("Miscellaneous", "log_filter", "*:Trace"); Settings::values.use_dev_keys = sdl2_config->GetBoolean("Miscellaneous", "use_dev_keys", false); -- cgit v1.2.3