From a37cbef8a8272c1de5c4c4198a55c857ffd8c4ff Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Wed, 21 Aug 2019 17:21:04 +0200 Subject: [PATCH] long file names work now even if not enabled by the OS --- Changelog.md | 1 + mpv.net/WinForms/MainForm.Designer.cs | 2 +- mpv.net/mpv/mp.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 0001e2b..c6a09ec 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ ### - added new setting to start with maximized window +- long file names work now even if not enabled by the OS ### 5.3 diff --git a/mpv.net/WinForms/MainForm.Designer.cs b/mpv.net/WinForms/MainForm.Designer.cs index 4ed320e..42b40cf 100644 --- a/mpv.net/WinForms/MainForm.Designer.cs +++ b/mpv.net/WinForms/MainForm.Designer.cs @@ -45,7 +45,7 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(288F, 288F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.Color.Black; - this.ClientSize = new System.Drawing.Size(668, 345); + this.ClientSize = new System.Drawing.Size(348, 0); this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); diff --git a/mpv.net/mpv/mp.cs b/mpv.net/mpv/mp.cs index 0426170..d368aec 100644 --- a/mpv.net/mpv/mp.cs +++ b/mpv.net/mpv/mp.cs @@ -622,7 +622,7 @@ namespace mpvnet foreach (string i in args) { - if (!i.StartsWith("--") && (i == "-" || i.Contains("://") || File.Exists(i))) + if (!i.StartsWith("--") && (i == "-" || i.Contains("://") || i.Contains(":\\"))) { files.Add(i); if (i.Contains("://")) RegHelp.SetObject(App.RegPath, "LastURL", i);