We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 302f914 commit cb55b88Copy full SHA for cb55b88
1 file changed
MaiChartManager.CLI/Commands/MakeAbCommand.cs
@@ -1,5 +1,6 @@
1
using System.ComponentModel;
2
using System.Text.RegularExpressions;
3
+using MaiChartManager;
4
using MaiChartManager.CLI.Utils;
5
using MaiChartManager.Utils;
6
using Spectre.Console;
@@ -32,6 +33,11 @@ public override ValidationResult Validate()
32
33
34
public override async Task<int> ExecuteAsync(CommandContext context, Settings settings, CancellationToken cancellationToken)
35
{
36
+ if (string.IsNullOrEmpty(StaticSettings.GamePath) || !Directory.Exists(StaticSettings.StreamingAssets))
37
+ {
38
+ AnsiConsole.MarkupLine("[red]✗ 未找到游戏目录,请先通过桌面版配置游戏路径[/]");
39
+ return 1;
40
+ }
41
var candidates = Directory.EnumerateFiles(settings.Folder)
42
.Select(path => (Path: path, Name: Path.GetFileName(path)))
43
.Select(x =>
0 commit comments