mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-23 13:41:15 +01:00
Use environment info for finding start menu programs path
Fixes issue #202.
This commit is contained in:
parent
a1e99344d2
commit
3984775d0c
@ -165,7 +165,7 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
lodsf.Clear();
|
lodsf.Clear();
|
||||||
lodsf.AddRange(Directory.GetFiles(path, "*.lnk", SearchOption.AllDirectories));
|
lodsf.AddRange(Directory.GetFiles(path, "*.lnk", SearchOption.AllDirectories));
|
||||||
lodsf.AddRange(Directory.GetFiles(@"C:\ProgramData\Microsoft\Windows\Start Menu\Programs", "*.lnk", SearchOption.AllDirectories));
|
lodsf.AddRange(Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu) + "\\Programs", "*.lnk", SearchOption.AllDirectories));
|
||||||
for (int i = 0; i < lodsf.Count; i++)
|
for (int i = 0; i < lodsf.Count; i++)
|
||||||
lodsf[i] = GetTargetPath(lodsf[i]);
|
lodsf[i] = GetTargetPath(lodsf[i]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user