mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Fix parsing of ruleset configuration values being incorrect on some locales
Closes #21611.
This commit is contained in:
parent
b7d2e0ae8e
commit
85039209f8
@ -5,9 +5,11 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Extensions;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Database;
|
||||
|
||||
@ -67,7 +69,7 @@ namespace osu.Game.Rulesets.Configuration
|
||||
{
|
||||
var setting = r.All<RealmRulesetSetting>().First(s => s.RulesetName == rulesetName && s.Variant == variant && s.Key == c.ToString());
|
||||
|
||||
setting.Value = ConfigStore[c].ToString();
|
||||
setting.Value = ConfigStore[c].ToString(CultureInfo.InvariantCulture);
|
||||
}
|
||||
});
|
||||
|
||||
@ -89,7 +91,7 @@ namespace osu.Game.Rulesets.Configuration
|
||||
setting = new RealmRulesetSetting
|
||||
{
|
||||
Key = lookup.ToString(),
|
||||
Value = bindable.Value.ToString(),
|
||||
Value = bindable.ToString(CultureInfo.InvariantCulture),
|
||||
RulesetName = rulesetName,
|
||||
Variant = variant,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user