Add difficulty calculator beatmap decoder fallback

This commit is contained in:
smoogipoo 2019-10-04 13:28:32 +09:00
parent 6268bbcfc8
commit ffde389641
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public LegacyDifficultyCalculatorBeatmapDecoder(int version = LATEST_VERSION)
public new static void Register()
{
AddDecoder<Beatmap>(@"osu file format v", m => new LegacyDifficultyCalculatorBeatmapDecoder(int.Parse(m.Split('v').Last())));
SetFallbackDecoder<Beatmap>(() => new LegacyDifficultyCalculatorBeatmapDecoder());
}
protected override TimingControlPoint CreateTimingControlPoint()