Mpc-hc detection fixes

This commit is contained in:
niksedk 2014-10-14 13:52:14 +02:00
parent 5978fe473b
commit e733860ff9
3 changed files with 615 additions and 594 deletions

File diff suppressed because it is too large Load Diff

View File

@ -138,6 +138,8 @@ namespace Nikse.SubtitleEdit.Forms
radioButtonVideoPlayerMPlayer.Enabled = false;
if (!Utilities.IsQuartsDllInstalled)
radioButtonVideoPlayerDirectShow.Enabled = false;
if (Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC.MpcHc.GetMpcHcFileName() == null)
radioButtonVideoPlayerMpcHc.Enabled = false;
textBoxVlcPath.Text = Configuration.Settings.General.VlcLocation;
textBoxVlcPath.Left = labelVideoPlayerVLC.Left + labelVideoPlayerVLC.Width + 5;

View File

@ -256,10 +256,18 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
return path;
}
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"MPC-HC\mpc-hc64.exe");
if (File.Exists(path))
return path;
path = @"C:\Program Files\MPC-HC\mpc-hc64.exe";
if (File.Exists(path))
return path;
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"K-Lite Codec Pack\MPC-HC\mpc-hc64.exe");
if (File.Exists(path))
return path;
path = @"C:\Program Files (x86)\MPC-HC\mpc-hc64.exe";
if (File.Exists(path))
return path;
@ -285,10 +293,18 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
return path;
}
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"MPC-HC\mpc-hc.exe");
if (File.Exists(path))
return path;
path = @"C:\Program Files (x86)\MPC-HC\mpc-hc.exe";
if (File.Exists(path))
return path;
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"K-Lite Codec Pack\MPC-HC\mpc-hc.exe");
if (File.Exists(path))
return path;
path = @"C:\Program Files\MPC-HC\mpc-hc.exe";
if (File.Exists(path))
return path;