mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 05:07:23 +09: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;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
|
using osu.Framework.Extensions;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Database;
|
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());
|
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
|
setting = new RealmRulesetSetting
|
||||||
{
|
{
|
||||||
Key = lookup.ToString(),
|
Key = lookup.ToString(),
|
||||||
Value = bindable.Value.ToString(),
|
Value = bindable.ToString(CultureInfo.InvariantCulture),
|
||||||
RulesetName = rulesetName,
|
RulesetName = rulesetName,
|
||||||
Variant = variant,
|
Variant = variant,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user