Merge branch 'master' into catch-disable-cursor

This commit is contained in:
Salman Ahmed 2022-12-13 13:23:43 +03:00 committed by GitHub
commit 898d88bf8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,9 @@ namespace osu.Game.Scoring.Legacy
throw new ArgumentException(@"Only scores in the osu, taiko, catch, or mania rulesets can be encoded to the legacy score format.", nameof(score)); throw new ArgumentException(@"Only scores in the osu, taiko, catch, or mania rulesets can be encoded to the legacy score format.", nameof(score));
} }
public void Encode(Stream stream) public void Encode(Stream stream, bool leaveOpen = false)
{ {
using (SerializationWriter sw = new SerializationWriter(stream)) using (SerializationWriter sw = new SerializationWriter(stream, leaveOpen))
{ {
sw.Write((byte)(score.ScoreInfo.Ruleset.OnlineID)); sw.Write((byte)(score.ScoreInfo.Ruleset.OnlineID));
sw.Write(LATEST_VERSION); sw.Write(LATEST_VERSION);