-
This commit is contained in:
@@ -353,8 +353,7 @@ namespace mpvnet
|
|||||||
Native.PostMessage(mp.WindowHandle, m.Msg, m.WParam, m.LParam);
|
Native.PostMessage(mp.WindowHandle, m.Msg, m.WParam, m.LParam);
|
||||||
break;
|
break;
|
||||||
case 0x203: // Native.WM.LBUTTONDBLCLK
|
case 0x203: // Native.WM.LBUTTONDBLCLK
|
||||||
if (!IsMouseInOSC())
|
if (!IsMouseInOSC()) mp.command_string("cycle fullscreen");
|
||||||
mp.command_string("cycle fullscreen");
|
|
||||||
break;
|
break;
|
||||||
case 0x02E0: // WM_DPICHANGED
|
case 0x02E0: // WM_DPICHANGED
|
||||||
if (IgnoreDpiChanged) break;
|
if (IgnoreDpiChanged) break;
|
||||||
|
|||||||
@@ -564,32 +564,20 @@ namespace mpvnet
|
|||||||
{
|
{
|
||||||
if (files is null || files.Length == 0) return;
|
if (files is null || files.Length == 0) return;
|
||||||
HideLogo();
|
HideLogo();
|
||||||
List<string> fileList = files.ToList();
|
|
||||||
|
|
||||||
foreach (string file in files)
|
for (int i = 0; i < files.Length; i++)
|
||||||
{
|
{
|
||||||
string ext = Path.GetExtension(file).TrimStart('.').ToLower();
|
string file = files[i];
|
||||||
|
|
||||||
if (App.SubtitleTypes.Contains(ext))
|
if (App.SubtitleTypes.Contains(Path.GetExtension(file).TrimStart('.').ToLower()))
|
||||||
{
|
|
||||||
mp.commandv("sub-add", file);
|
mp.commandv("sub-add", file);
|
||||||
fileList.Remove(file);
|
else
|
||||||
}
|
if (i == 0)
|
||||||
|
mp.commandv("loadfile", file);
|
||||||
|
else
|
||||||
|
mp.commandv("loadfile", file, "append");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fileList.Count == 0) return;
|
|
||||||
files = fileList.ToArray();
|
|
||||||
|
|
||||||
int count = mp.get_property_int("playlist-count");
|
|
||||||
|
|
||||||
foreach (string file in files)
|
|
||||||
mp.commandv("loadfile", file, "append");
|
|
||||||
|
|
||||||
mp.set_property_int("playlist-pos", count);
|
|
||||||
|
|
||||||
for (int i = 0; i < count; i++)
|
|
||||||
mp.commandv("playlist-remove", "0");
|
|
||||||
|
|
||||||
mp.LoadFolder(files[0]);
|
mp.LoadFolder(files[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user