This commit is contained in:
Frank Skare
2019-06-01 15:15:41 +02:00
parent c1a03c3e4b
commit c3f2b22ff5
3 changed files with 15 additions and 3 deletions

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]

View File

@@ -537,8 +537,14 @@ namespace mpvnet
List<string> files = new List<string>();
foreach (string i in args)
if (!i.StartsWith("--") && File.Exists(i))
{
if (!i.StartsWith("--") && File.Exists(i) || i == "-" || i.StartsWith("http"))
{
files.Add(i);
if (i.StartsWith("http"))
RegistryHelp.SetObject("HKCU\\Software\\" + Application.ProductName, "LastURL", i);
}
}
mp.LoadFiles(files.ToArray());
@@ -670,6 +676,7 @@ namespace mpvnet
{
if (MainForm.Instance is null) return;
Rectangle cr = MainForm.Instance.ClientRectangle;
if (cr.Width == 0 || cr.Height == 0) return;
using (Bitmap b = new Bitmap(cr.Width, cr.Height))
{