From 6aa054b5fa4dd5cad6a945e2fdc57c1786a7f3df Mon Sep 17 00:00:00 2001 From: Naxesss <30292137+Naxesss@users.noreply.github.com> Date: Mon, 11 Oct 2021 13:53:23 +0200 Subject: [PATCH] Change to non-BASS error template --- osu.Game/Rulesets/Edit/Checks/CheckAudioInVideo.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game/Rulesets/Edit/Checks/CheckAudioInVideo.cs b/osu.Game/Rulesets/Edit/Checks/CheckAudioInVideo.cs index 467adcdfb6..5ac92f5bc3 100644 --- a/osu.Game/Rulesets/Edit/Checks/CheckAudioInVideo.cs +++ b/osu.Game/Rulesets/Edit/Checks/CheckAudioInVideo.cs @@ -17,8 +17,8 @@ namespace osu.Game.Rulesets.Edit.Checks public IEnumerable PossibleTemplates => new IssueTemplate[] { new IssueTemplateHasAudioTrack(this), - new IssueTemplateBadFormat(this), - new IssueTemplateMissingFile(this) + new IssueTemplateMissingFile(this), + new IssueTemplateFileError(this) }; public IEnumerable Run(BeatmapVerifierContext context) @@ -64,14 +64,14 @@ namespace osu.Game.Rulesets.Edit.Checks public Issue Create(string filename) => new Issue(this, filename); } - public class IssueTemplateBadFormat : IssueTemplate + public class IssueTemplateFileError : IssueTemplate { - public IssueTemplateBadFormat(ICheck check) - : base(check, IssueType.Error, "Could not check whether \"{0}\" has an audio track (code \"{1}\").") + public IssueTemplateFileError(ICheck check) + : base(check, IssueType.Error, "Could not check whether \"{0}\" has an audio track ({1}).") { } - public Issue Create(string filename) => new Issue(this, filename, Bass.LastError); + public Issue Create(string filename, string errorReason) => new Issue(this, filename, errorReason); } public class IssueTemplateMissingFile : IssueTemplate