mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Merge branch 'master' into UserIDDBStore
This commit is contained in:
@ -111,12 +111,14 @@ namespace osu.Game.Scoring.Legacy
|
||||
byte[] properties = new byte[5];
|
||||
if (replayInStream.Read(properties, 0, 5) != 5)
|
||||
throw new IOException("input .lzma is too short");
|
||||
|
||||
long outSize = 0;
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
int v = replayInStream.ReadByte();
|
||||
if (v < 0)
|
||||
throw new IOException("Can't Read 1");
|
||||
|
||||
outSize |= (long)(byte)v << (8 * i);
|
||||
}
|
||||
|
||||
@ -264,6 +266,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
var convertible = currentRuleset.CreateConvertibleReplayFrame();
|
||||
if (convertible == null)
|
||||
throw new InvalidOperationException($"Legacy replay cannot be converted for the ruleset: {currentRuleset.Description}");
|
||||
|
||||
convertible.ConvertFrom(legacyFrame, currentBeatmap);
|
||||
|
||||
var frame = (ReplayFrame)convertible;
|
||||
|
@ -25,10 +25,10 @@ namespace osu.Game.Scoring
|
||||
public ScoreRank Rank { get; set; }
|
||||
|
||||
[JsonProperty("total_score")]
|
||||
public int TotalScore { get; set; }
|
||||
public long TotalScore { get; set; }
|
||||
|
||||
[JsonProperty("accuracy")]
|
||||
[Column(TypeName="DECIMAL(1,4)")]
|
||||
[Column(TypeName = "DECIMAL(1,4)")]
|
||||
public double Accuracy { get; set; }
|
||||
|
||||
[JsonProperty(@"pp")]
|
||||
|
@ -9,20 +9,28 @@ namespace osu.Game.Scoring
|
||||
{
|
||||
[Description(@"F")]
|
||||
F,
|
||||
|
||||
[Description(@"F")]
|
||||
D,
|
||||
|
||||
[Description(@"C")]
|
||||
C,
|
||||
|
||||
[Description(@"B")]
|
||||
B,
|
||||
|
||||
[Description(@"A")]
|
||||
A,
|
||||
|
||||
[Description(@"S")]
|
||||
S,
|
||||
|
||||
[Description(@"SPlus")]
|
||||
SH,
|
||||
|
||||
[Description(@"SS")]
|
||||
X,
|
||||
|
||||
[Description(@"SSPlus")]
|
||||
XH,
|
||||
}
|
||||
|
Reference in New Issue
Block a user