message asking if image is BD or DVD
This commit is contained in:
12
Changelog.md
12
Changelog.md
@@ -1,12 +1,16 @@
|
||||
|
||||
5.4.8.4 Beta (not yet released)
|
||||
5.4.8.5 Beta (not yet released)
|
||||
============
|
||||
|
||||
- BluRays with dozens of titles showed all titles in the menu
|
||||
5.4.8.4 Beta
|
||||
============
|
||||
|
||||
- Blu-rays with dozens of titles showed all titles in the menu
|
||||
which was difficult to choose and extremely slow.
|
||||
- BluRay folder paths are auto detected when received
|
||||
- Blu-ray folder paths are auto detected when received
|
||||
from drag & drop and command line.
|
||||
- Cycle audio was not working for BluRay.
|
||||
- Cycle audio was not working for Blu-ray.
|
||||
- Message asking if image is BD or DVD in case image is < 10 GB.
|
||||
|
||||
|
||||
5.4.8.3 Beta
|
||||
|
||||
@@ -3,15 +3,15 @@ using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows;
|
||||
|
||||
using VB = Microsoft.VisualBasic;
|
||||
|
||||
using static NewLine;
|
||||
using static mpvnet.Core;
|
||||
using System.Threading;
|
||||
|
||||
namespace mpvnet
|
||||
{
|
||||
|
||||
@@ -363,6 +363,12 @@ public class TaskDialog<T> : TaskDialogNative, IDisposable
|
||||
return value;
|
||||
}
|
||||
|
||||
public void AddCommand(string text)
|
||||
{
|
||||
object obj = text;
|
||||
AddCommand(text, (T)obj);
|
||||
}
|
||||
|
||||
public void AddCommand(string text, T value)
|
||||
{
|
||||
int n = 1000 + IdValueDic.Count + 1;
|
||||
|
||||
@@ -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("5.4.8.3")]
|
||||
[assembly: AssemblyFileVersion("5.4.8.3")]
|
||||
[assembly: AssemblyVersion("5.4.8.4")]
|
||||
[assembly: AssemblyFileVersion("5.4.8.4")]
|
||||
|
||||
@@ -1043,17 +1043,37 @@ namespace mpvnet
|
||||
|
||||
public void LoadISO(string path)
|
||||
{
|
||||
core.command("stop");
|
||||
Thread.Sleep(500);
|
||||
long gb = new FileInfo(path).Length / 1024 / 1024 / 1024;
|
||||
|
||||
if (gb < 10)
|
||||
{
|
||||
core.set_property_string("dvd-device", path);
|
||||
core.LoadFiles(new[] { @"dvd://" }, false, false);
|
||||
using (TaskDialog<string> td = new TaskDialog<string>())
|
||||
{
|
||||
td.MainInstruction = "Blu-ray or DVD?";
|
||||
td.AddCommand("Blu-ray");
|
||||
td.AddCommand("DVD");
|
||||
|
||||
switch (td.Show())
|
||||
{
|
||||
case "Blu-ray":
|
||||
core.command("stop");
|
||||
Thread.Sleep(500);
|
||||
core.set_property_string("bluray-device", path);
|
||||
core.LoadFiles(new[] { @"bd://" }, false, false);
|
||||
break;
|
||||
case "DVD":
|
||||
core.command("stop");
|
||||
Thread.Sleep(500);
|
||||
core.set_property_string("dvd-device", path);
|
||||
core.LoadFiles(new[] { @"dvd://" }, false, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
core.command("stop");
|
||||
Thread.Sleep(500);
|
||||
core.set_property_string("bluray-device", path);
|
||||
core.LoadFiles(new[] { @"bd://" }, false, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user