This commit is contained in:
niksedk 2023-05-18 09:42:55 +02:00
parent 689ca1337e
commit f017adda95
2 changed files with 19 additions and 1 deletions

View File

@ -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());

View File

@ -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))
{