mirror of https://github.com/ppy/osu
Run score conversion for previously-imported scores
This commit is contained in:
parent
017003deea
commit
9c8df4e6d1
|
@ -127,8 +127,11 @@ public void TestDifficultyProcessingWhilePlaying()
|
|||
});
|
||||
}
|
||||
|
||||
[TestCase(30000001)]
|
||||
[TestCase(30000002)]
|
||||
[TestCase(30000003)]
|
||||
[TestCase(30000004)]
|
||||
[TestCase(30000005)]
|
||||
public void TestScoreUpgradeSuccess(int scoreVersion)
|
||||
{
|
||||
ScoreInfo scoreInfo = null!;
|
||||
|
|
|
@ -316,8 +316,7 @@ private void convertLegacyTotalScoreToStandardised()
|
|||
|
||||
HashSet<Guid> scoreIds = realmAccess.Run(r => new HashSet<Guid>(r.All<ScoreInfo>()
|
||||
.Where(s => !s.BackgroundReprocessingFailed && s.BeatmapInfo != null
|
||||
&& (s.TotalScoreVersion == 30000002
|
||||
|| s.TotalScoreVersion == 30000003))
|
||||
&& s.TotalScoreVersion < LegacyScoreEncoder.LATEST_VERSION)
|
||||
.AsEnumerable().Select(s => s.ID)));
|
||||
|
||||
Logger.Log($"Found {scoreIds.Count} scores which require total score conversion.");
|
||||
|
|
|
@ -26,7 +26,7 @@ public static bool ShouldMigrateToNewStandardised(ScoreInfo score)
|
|||
if (score.IsLegacyScore)
|
||||
return false;
|
||||
|
||||
if (score.TotalScoreVersion > 30000004)
|
||||
if (score.TotalScoreVersion > 30000005)
|
||||
return false;
|
||||
|
||||
// Recalculate the old-style standardised score to see if this was an old lazer score.
|
||||
|
|
Loading…
Reference in New Issue