mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +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.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System.Globalization;
|
||||||
using osu.Game.Beatmaps.Formats;
|
using osu.Game.Beatmaps.Formats;
|
||||||
|
|
||||||
namespace osu.Game.Skinning
|
namespace osu.Game.Skinning
|
||||||
@ -36,7 +37,7 @@ namespace osu.Game.Skinning
|
|||||||
case @"Version":
|
case @"Version":
|
||||||
if (pair.Value == "latest")
|
if (pair.Value == "latest")
|
||||||
skin.LegacyVersion = LegacySkinConfiguration.LATEST_VERSION;
|
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;
|
skin.LegacyVersion = version;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user