Skip to content

Commit

Permalink
Support relative folders from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Jul 25, 2024
1 parent 1243d13 commit f3fdef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/MpvNet/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public static void ProcessCommandLineFiles()

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);

Expand Down

0 comments on commit f3fdef7

Please sign in to comment.