mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:43:00 +08:00
Move legacy online ID encode/decode to legacy property
This commit is contained in:
parent
bfcb4f4f2d
commit
fa519984df
@ -101,9 +101,9 @@ namespace osu.Game.Scoring.Legacy
|
||||
byte[] compressedReplay = sr.ReadByteArray();
|
||||
|
||||
if (version >= 20140721)
|
||||
scoreInfo.OnlineID = sr.ReadInt64();
|
||||
scoreInfo.LegacyOnlineID = sr.ReadInt64();
|
||||
else if (version >= 20121008)
|
||||
scoreInfo.OnlineID = sr.ReadInt32();
|
||||
scoreInfo.LegacyOnlineID = sr.ReadInt32();
|
||||
|
||||
byte[] compressedScoreInfo = null;
|
||||
|
||||
|
@ -84,7 +84,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
sw.Write(getHpGraphFormatted());
|
||||
sw.Write(score.ScoreInfo.Date.DateTime);
|
||||
sw.WriteByteArray(createReplayData());
|
||||
sw.Write((long)0);
|
||||
sw.Write(score.ScoreInfo.LegacyOnlineID);
|
||||
writeModSpecificData(score.ScoreInfo, sw);
|
||||
sw.WriteByteArray(createScoreInfoData());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user