diff --git a/src/nxDumpFuse/Model/Fuse.cs b/src/nxDumpFuse/Model/Fuse.cs index d6db3da..bd6a681 100644 --- a/src/nxDumpFuse/Model/Fuse.cs +++ b/src/nxDumpFuse/Model/Fuse.cs @@ -75,12 +75,12 @@ namespace nxDumpFuse.Model } var inputFiles = GetInputFiles(); - if (inputFiles.Length == 0) + if (inputFiles.Count == 0) { Log(FuseSimpleLogType.Error, "No input files found"); return; } - + inputFiles.Sort(); FuseFiles(inputFiles, _outputFilePath); } @@ -186,11 +186,11 @@ namespace nxDumpFuse.Model return totalFileSize; } - private string[] GetInputFiles() + private List GetInputFiles() { var inputDir = Path.GetDirectoryName(_inputFilePath); if (string.IsNullOrEmpty(inputDir)) inputDir = Path.GetPathRoot(_inputFilePath); - return inputDir != null ? Directory.GetFiles(inputDir) : new string[] { }; + return inputDir != null ? Directory.GetFiles(inputDir, $"{Path.GetFileNameWithoutExtension(_inputFilePath)}*").ToList() : new List(); } public void StopFuse() diff --git a/src/nxDumpFuse/Views/FuseView.axaml b/src/nxDumpFuse/Views/FuseView.axaml index ff04443..ead28cd 100644 --- a/src/nxDumpFuse/Views/FuseView.axaml +++ b/src/nxDumpFuse/Views/FuseView.axaml @@ -61,7 +61,7 @@