mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Minor changes and improvements
This commit is contained in:
parent
434354c44c
commit
cfd82104db
@ -55,7 +55,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
private (IBeatmap beatmap, LegacyBeatmapSkin beatmapSkin) decodeFromLegacy(Stream stream)
|
||||
private (IBeatmap beatmap, LegacySkin beatmapSkin) decodeFromLegacy(Stream stream)
|
||||
{
|
||||
using (var reader = new LineBufferedReader(stream))
|
||||
{
|
||||
@ -65,7 +65,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
private Stream encodeToLegacy((IBeatmap beatmap, LegacyBeatmapSkin beatmapSkin) fullBeatmap)
|
||||
private Stream encodeToLegacy((IBeatmap beatmap, LegacySkin beatmapSkin) fullBeatmap)
|
||||
{
|
||||
var (beatmap, beatmapSkin) = fullBeatmap;
|
||||
var stream = new MemoryStream();
|
||||
|
@ -90,9 +90,7 @@ namespace osu.Game.Screens.Edit
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
||||
{
|
||||
new LegacyBeatmapEncoder(editorBeatmap, beatmapSkin).Encode(sw);
|
||||
}
|
||||
|
||||
savedStates.Add(stream.ToArray());
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace osu.Game.Skinning
|
||||
return other != null &&
|
||||
ConfigDictionary.SequenceEqual(other.ConfigDictionary) &&
|
||||
ComboColours.SequenceEqual(other.ComboColours) &&
|
||||
CustomColours.SequenceEqual(other.CustomColours);
|
||||
CustomColours?.SequenceEqual(other.CustomColours) == true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user