diff --git a/Code/Forms/BatchForm.cs b/Code/Forms/BatchForm.cs index 6bcf6cd..de731d0 100644 --- a/Code/Forms/BatchForm.cs +++ b/Code/Forms/BatchForm.cs @@ -33,7 +33,8 @@ namespace Flowframes.Forms { InterpSettings entry = Program.batchQueue.ElementAt(i); string outFormat = Strings.OutputFormat.Get(entry.outSettings.Format.ToString()); - string str = $"#{i+1}: {Path.GetFileName(entry.inPath).Trunc(40)} - {entry.inFps.GetFloat()} FPS => {entry.interpFactor}x {entry.ai.NameShort} ({entry.model.Name}) => {outFormat}"; + string inPath = string.IsNullOrWhiteSpace(entry.inPath) ? "No Path" : Path.GetFileName(entry.inPath).Trunc(40); + string str = $"#{i+1}: {inPath} - {entry.inFps.GetFloat()} FPS => {entry.interpFactor}x {entry.ai.NameShort} ({entry.model.Name}) => {outFormat}"; taskList.Items.Add(str); } } diff --git a/Code/IO/IoUtils.cs b/Code/IO/IoUtils.cs index c508f3c..b68e281 100644 --- a/Code/IO/IoUtils.cs +++ b/Code/IO/IoUtils.cs @@ -52,6 +52,9 @@ namespace Flowframes.IO public static string[] ReadLines(string path) { + if (!File.Exists(path)) + return new string[0]; + List lines = new List(); using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 0x1000, FileOptions.SequentialScan))