mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 12:52:53 +08:00
110e4fbb30
As proposed in https://github.com/ppy/osu-server-beatmap-submission/pull/5#discussion_r1861680837.
15 lines
476 B
C#
15 lines
476 B
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.IO;
|
|
using System.Linq;
|
|
using osu.Game.Utils;
|
|
|
|
namespace osu.Game.Rulesets.Edit.Checks.Components
|
|
{
|
|
public static class AudioCheckUtils
|
|
{
|
|
public static bool HasAudioExtension(string filename) => SupportedExtensions.AUDIO_EXTENSIONS.Contains(Path.GetExtension(filename).ToLowerInvariant());
|
|
}
|
|
}
|