2023-08-30 05:27:15 +08:00
|
|
|
// 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.
|
|
|
|
|
2023-09-02 02:56:42 +08:00
|
|
|
using System.IO;
|
2023-08-30 02:10:35 +08:00
|
|
|
using System.Linq;
|
2024-11-28 22:37:27 +08:00
|
|
|
using osu.Game.Utils;
|
2023-08-30 02:10:35 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Edit.Checks.Components
|
|
|
|
{
|
|
|
|
public static class AudioCheckUtils
|
|
|
|
{
|
2024-11-28 22:37:27 +08:00
|
|
|
public static bool HasAudioExtension(string filename) => SupportedExtensions.AUDIO_EXTENSIONS.Contains(Path.GetExtension(filename).ToLowerInvariant());
|
2023-08-30 02:10:35 +08:00
|
|
|
}
|
2023-08-30 05:27:15 +08:00
|
|
|
}
|