mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Change brackets to square
This commit is contained in:
parent
0cbe95d661
commit
a2484692b3
@ -148,8 +148,12 @@ namespace osu.Game.Tests.Skins.IO
|
|||||||
var osu = LoadOsuIntoHost(host);
|
var osu = LoadOsuIntoHost(host);
|
||||||
|
|
||||||
var imported = await loadSkinIntoOsu(osu, new ZipArchiveReader(createOsk("name 1", "author 1", false), "my custom skin 1"));
|
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"));
|
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));
|
Assert.That(imported2.Hash, Is.Not.EqualTo(imported.Hash));
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ namespace osu.Game.Skinning
|
|||||||
bool isArchiveImport = archiveName?.Contains(".osk", StringComparison.OrdinalIgnoreCase) == true;
|
bool isArchiveImport = archiveName?.Contains(".osk", StringComparison.OrdinalIgnoreCase) == true;
|
||||||
|
|
||||||
if (archiveName != null && !isArchiveImport && archiveName != item.Name)
|
if (archiveName != null && !isArchiveImport && archiveName != item.Name)
|
||||||
item.Name = $"{item.Name} ({archiveName})";
|
item.Name = $"{item.Name} [{archiveName}]";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user