Now searches for vlc a few extra places

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@413 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-04-26 20:50:20 +00:00
parent adf99a24cc
commit 0beaf3ca7d

View File

@ -440,10 +440,22 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
if (File.Exists(path))
return path;
path = Path.Combine(@"C:\Program Files (x86)\VLC", fileName);
if (File.Exists(path))
return path;
path = Path.Combine(@"C:\Program Files\VLC", fileName);
if (File.Exists(path))
return path;
path = Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"VideoLAN\VLC\" + fileName);
if (File.Exists(path))
return path;
path = Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"VLC\" + fileName);
if (File.Exists(path))
return path;
return null;
}