mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:23:22 +08:00
Add back stream seeking for sanity
This commit is contained in:
parent
b41384dde8
commit
dfed27bd46
@ -201,6 +201,8 @@ namespace osu.Game.Beatmaps
|
|||||||
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))
|
||||||
new LegacyBeatmapEncoder(beatmapContent).Encode(sw);
|
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);
|
UpdateFile(setInfo, setInfo.Files.Single(f => string.Equals(f.Filename, info.Path, StringComparison.OrdinalIgnoreCase)), stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user