mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Specify culture and number style
This commit is contained in:
parent
947602f70a
commit
ba14345107
@ -1,6 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Globalization;
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
|
||||
namespace osu.Game.Skinning
|
||||
@ -36,7 +37,7 @@ namespace osu.Game.Skinning
|
||||
case @"Version":
|
||||
if (pair.Value == "latest")
|
||||
skin.LegacyVersion = LegacySkinConfiguration.LATEST_VERSION;
|
||||
else if (decimal.TryParse(pair.Value, out var version))
|
||||
else if (decimal.TryParse(pair.Value, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var version))
|
||||
skin.LegacyVersion = version;
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user