Keep a language code the starter cannot display in eu07.ini

Matches the old starter: lower case, and an unknown code is left alone.
This commit is contained in:
maj00r
2026-09-04 21:57:08 +02:00
parent 27f0e97b43
commit 673cda57d7
3 changed files with 27 additions and 1 deletions

View File

@@ -171,7 +171,10 @@ public sealed class SettingsSerializer
foreach (string key in ObsoleteKeys)
c.Remove(key);
c.Set("lang", string.IsNullOrWhiteSpace(s.LanguageCode) ? "en" : s.LanguageCode);
// Lower case, as the simulator expects and as the old starter wrote it.
c.Set("lang", string.IsNullOrWhiteSpace(s.LanguageCode)
? "en"
: s.LanguageCode.Trim().ToLowerInvariant());
c.SetBool("fullscreen", s.Fullscreen);
c.SetBool("inactivepause", s.PauseWhenInactive);
c.SetBool("pause", s.PauseOnStart);