1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 20:33:35 +08:00
Files
osu-lazer/osu.Game/Rulesets/Edit/BeatmapVerifier.cs
T
Hivie 107e875a02 Adjust CheckFewHitsounds verify check based on feedback (#37466)
commit 1 makes sure breaks are skipped in calculation to avoid false
positives ([reported
internally](https://discord.com/channels/90072389919997952/1259818301517725707/1491051558081925170))

commit 2 makes the check only available in osu! and osu!catch as it's
not relevant in:
- osu!taiko, as it usually only triggers on valid mono-mapping (section
with all dons for example).
- osu!mania, given hitsounding is optional there.
- ([brief internal
discussion](https://discord.com/channels/90072389919997952/1259818301517725707/1496265253061660793))
2026-05-11 09:03:31 +02:00

66 lines
1.9 KiB
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Rulesets.Edit.Checks;
using osu.Game.Rulesets.Edit.Checks.Components;
namespace osu.Game.Rulesets.Edit
{
/// <summary>
/// A ruleset-agnostic beatmap verifier that identifies issues in common metadata or mapping standards.
/// </summary>
public class BeatmapVerifier : IBeatmapVerifier
{
private readonly List<ICheck> checks = new List<ICheck>
{
// Resources
new CheckBackgroundPresence(),
new CheckBackgroundQuality(),
new CheckVideoResolution(),
new CheckVideoUsage(),
// Audio
new CheckAudioPresence(),
new CheckAudioQuality(),
new CheckMutedObjects(),
new CheckTooShortAudioFiles(),
new CheckAudioInVideo(),
new CheckDelayedHitsounds(),
new CheckSongFormat(),
new CheckHitsoundsFormat(),
new CheckInconsistentAudio(),
// Files
new CheckZeroByteFiles(),
// Compose
new CheckUnsnappedObjects(),
new CheckZeroLengthObjects(),
new CheckDrainLength(),
new CheckUnusedAudioAtEnd(),
// Timing
new CheckPreviewTime(),
new CheckInconsistentTimingControlPoints(),
// Events
new CheckBreaks(),
// Metadata
new CheckTitleMarkers(),
new CheckInconsistentMetadata(),
new CheckMissingGenreLanguage(),
// Settings
new CheckInconsistentSettings(),
};
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
{
return checks.SelectMany(check => check.Run(context));
}
}
}