1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:35:35 +08:00

Change brackets to square

This commit is contained in:
Dean Herbert 2021-08-23 20:37:19 +09:00
parent 0cbe95d661
commit a2484692b3
2 changed files with 5 additions and 1 deletions

View File

@ -148,8 +148,12 @@ namespace osu.Game.Tests.Skins.IO
var osu = LoadOsuIntoHost(host);
var imported = await loadSkinIntoOsu(osu, new ZipArchiveReader(createOsk("name 1", "author 1", false), "my custom skin 1"));
Assert.That(imported.Name, Is.EqualTo("name 1 [my custom skin 1]"));
Assert.That(imported.Creator, Is.EqualTo("author 1"));
var imported2 = await loadSkinIntoOsu(osu, new ZipArchiveReader(createOsk("name 1", "author 1", false), "my custom skin 2"));
Assert.That(imported2.Name, Is.EqualTo("name 1 [my custom skin 2]"));
Assert.That(imported2.Creator, Is.EqualTo("author 1"));
Assert.That(imported2.Hash, Is.Not.EqualTo(imported.Hash));
}

View File

@ -181,7 +181,7 @@ namespace osu.Game.Skinning
bool isArchiveImport = archiveName?.Contains(".osk", StringComparison.OrdinalIgnoreCase) == true;
if (archiveName != null && !isArchiveImport && archiveName != item.Name)
item.Name = $"{item.Name} ({archiveName})";
item.Name = $"{item.Name} [{archiveName}]";
}
/// <summary>