mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Temporary changes
This commit is contained in:
parent
8ffaa49839
commit
69590113d6
@ -10,6 +10,7 @@ using System.Text;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Audio.Track;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
using osu.Framework.IO.Stores;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
@ -19,6 +20,7 @@ using osu.Game.Rulesets.Catch;
|
||||
using osu.Game.Rulesets.Mania;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
using osu.Game.Rulesets.Taiko;
|
||||
using osu.Game.Skinning;
|
||||
using osu.Game.Tests.Resources;
|
||||
|
||||
namespace osu.Game.Tests.Beatmaps.Formats
|
||||
@ -61,7 +63,11 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
var stream = new MemoryStream();
|
||||
|
||||
using (var writer = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
||||
new LegacyBeatmapEncoder(beatmap).Encode(writer);
|
||||
using (var rs = new ResourceStore<byte[]>())
|
||||
{
|
||||
var skin = new LegacyBeatmapSkin(beatmap.BeatmapInfo, rs, null);
|
||||
new LegacyBeatmapEncoder(beatmap, skin).Encode(writer);
|
||||
}
|
||||
|
||||
stream.Position = 0;
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.IO.Stores;
|
||||
using osu.Game.Audio;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
@ -14,6 +15,7 @@ using osu.Game.Rulesets.Osu;
|
||||
using osu.Game.Rulesets.Osu.Beatmaps;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Screens.Edit;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
using Decoder = osu.Game.Beatmaps.Formats.Decoder;
|
||||
|
||||
@ -351,7 +353,11 @@ namespace osu.Game.Tests.Editing
|
||||
using (var encoded = new MemoryStream())
|
||||
{
|
||||
using (var sw = new StreamWriter(encoded))
|
||||
new LegacyBeatmapEncoder(beatmap).Encode(sw);
|
||||
using (var rs = new ResourceStore<byte[]>())
|
||||
{
|
||||
var skin = new LegacyBeatmapSkin(beatmap.BeatmapInfo, rs, null);
|
||||
new LegacyBeatmapEncoder(beatmap, skin).Encode(sw);
|
||||
}
|
||||
|
||||
return encoded.ToArray();
|
||||
}
|
||||
|
@ -6,8 +6,10 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.IO.Stores;
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Skinning;
|
||||
|
||||
namespace osu.Game.Screens.Edit
|
||||
{
|
||||
@ -85,7 +87,11 @@ namespace osu.Game.Screens.Edit
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
||||
new LegacyBeatmapEncoder(editorBeatmap).Encode(sw);
|
||||
using (var rs = new ResourceStore<byte[]>())
|
||||
{
|
||||
var skin = new LegacyBeatmapSkin(editorBeatmap.BeatmapInfo, rs, null);
|
||||
new LegacyBeatmapEncoder(editorBeatmap, skin).Encode(sw);
|
||||
}
|
||||
|
||||
savedStates.Add(stream.ToArray());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user