From f3fdef780d9223b78afd1ad92758e428012e190e Mon Sep 17 00:00:00 2001 From: stax76 Date: Fri, 26 Jul 2024 00:14:44 +0200 Subject: [PATCH] Support relative folders from command line --- docs/changelog.md | 1 + src/MpvNet/CommandLine.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 2b323f2..0d0a64e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,7 @@ # v7.1.1.2 Beta (????-??-??) - German and Turkish translation updated. Thanks to the translation team! +- Support relative folders from command line. # v7.1.1.1 Beta (2024-07-20) diff --git a/src/MpvNet/CommandLine.cs b/src/MpvNet/CommandLine.cs index 5364b4d..dac2f42 100644 --- a/src/MpvNet/CommandLine.cs +++ b/src/MpvNet/CommandLine.cs @@ -117,7 +117,8 @@ public class CommandLine foreach (string arg in Environment.GetCommandLineArgs().Skip(1)) if (!arg.StartsWith("--") && (arg == "-" || arg.Contains("://") || - arg.Contains(":\\") || arg.StartsWith("\\\\") || File.Exists(arg))) + arg.Contains(":\\") || arg.StartsWith("\\\\") || arg.StartsWith(".") || + File.Exists(arg))) files.Add(arg);