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

Add back stream seeking for sanity

This commit is contained in:
smoogipoo 2020-06-08 14:24:21 +09:00
parent b41384dde8
commit dfed27bd46

View File

@ -201,6 +201,8 @@ namespace osu.Game.Beatmaps
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
new LegacyBeatmapEncoder(beatmapContent).Encode(sw);
stream.Seek(0, SeekOrigin.Begin);
UpdateFile(setInfo, setInfo.Files.Single(f => string.Equals(f.Filename, info.Path, StringComparison.OrdinalIgnoreCase)), stream);
}