1
0
mirror of https://github.com/ppy/osu.git synced 2024-05-14 22:40:33 +08:00

Merge pull request #27739 from Susko3/use-invariant-culture-in-skin-parsing

Fix `SkinImporter` not using invariant culture when parsing skins without `skin.ini`
This commit is contained in:
Dan Balasescu 2024-03-28 09:52:16 +09:00 committed by GitHub
commit 4a8e0eddd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,7 @@ namespace osu.Game.Skinning
{
// skins without a skin.ini are supposed to import using the "latest version" spec.
// see https://github.com/peppy/osu-stable-reference/blob/1531237b63392e82c003c712faa028406073aa8f/osu!/Graphics/Skinning/SkinManager.cs#L297-L298
newLines.Add($"Version: {SkinConfiguration.LATEST_VERSION}");
newLines.Add(FormattableString.Invariant($"Version: {SkinConfiguration.LATEST_VERSION}"));
// In the case a skin doesn't have a skin.ini yet, let's create one.
writeNewSkinIni();