mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Improve detection of portable MPC-HC
This commit is contained in:
parent
99a7a00d63
commit
246e79ceba
@ -286,7 +286,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
|
||||
|
||||
if (!string.IsNullOrEmpty(Configuration.Settings.General.MpcHcLocation))
|
||||
{
|
||||
path = Path.GetDirectoryName(Configuration.Settings.General.MpcHcLocation);
|
||||
path = Configuration.Settings.General.MpcHcLocation;
|
||||
if (path != null && (File.Exists(path) && path.EndsWith("mpc-hc64.exe", StringComparison.OrdinalIgnoreCase)))
|
||||
return path;
|
||||
if (Directory.Exists(Configuration.Settings.General.MpcHcLocation))
|
||||
@ -340,7 +340,7 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
|
||||
|
||||
if (!string.IsNullOrEmpty(Configuration.Settings.General.MpcHcLocation))
|
||||
{
|
||||
path = Path.GetDirectoryName(Configuration.Settings.General.MpcHcLocation);
|
||||
path = Configuration.Settings.General.MpcHcLocation;
|
||||
if (path != null && File.Exists(path) && path.EndsWith("mpc-hc.exe", StringComparison.OrdinalIgnoreCase))
|
||||
return path;
|
||||
if (Directory.Exists(Configuration.Settings.General.MpcHcLocation))
|
||||
|
Loading…
Reference in New Issue
Block a user