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