diff --git a/src/ui/Forms/ShowEarlierLater.cs b/src/ui/Forms/ShowEarlierLater.cs index db926b73a..9517043c8 100644 --- a/src/ui/Forms/ShowEarlierLater.cs +++ b/src/ui/Forms/ShowEarlierLater.cs @@ -99,7 +99,7 @@ namespace Nikse.SubtitleEdit.Forms private void ButtonShowEarlierClick(object sender, EventArgs e) { - TimeCode tc = timeUpDownAdjust.TimeCode; + var tc = timeUpDownAdjust.TimeCode; if (tc != null && tc.TotalMilliseconds > 0) { _adjustCallback.Invoke(-tc.TotalMilliseconds, GetSelectionChoice()); diff --git a/src/ui/Logic/VideoPlayers/MpcHC/MpcHc.cs b/src/ui/Logic/VideoPlayers/MpcHC/MpcHc.cs index ac31d459c..352049cdc 100644 --- a/src/ui/Logic/VideoPlayers/MpcHC/MpcHc.cs +++ b/src/ui/Logic/VideoPlayers/MpcHC/MpcHc.cs @@ -379,6 +379,18 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC return path; } + path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), $@"K-Lite\{prefix.ToUpperInvariant()}\{fileName}"); + if (File.Exists(path)) + { + return path; + } + + path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), $@"K-Lite\{prefix.ToUpperInvariant()}64\{fileName}"); + if (File.Exists(path)) + { + return path; + } + path = $@"C:\Program Files (x86)\{prefix.ToUpperInvariant()}\{fileName}"; if (File.Exists(path)) { @@ -446,6 +458,12 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC return path; } + path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), $@"K-Lite\{prefix.ToUpperInvariant()}\{fileName}"); + if (File.Exists(path)) + { + return path; + } + path = $@"C:\Program Files\{prefix.ToUpperInvariant()}\{fileName}"; if (File.Exists(path)) {