mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 02:54:20 +01:00
Merge branch 'jay' of https://github.com/Ryochan7/DS4Windows into jay
This commit is contained in:
commit
1c6f170770
@ -346,9 +346,18 @@ namespace DS4Windows.Forms
|
|||||||
|
|
||||||
if (onlylnkpath != Process.GetCurrentProcess().MainModule.FileName)
|
if (onlylnkpath != Process.GetCurrentProcess().MainModule.FileName)
|
||||||
{
|
{
|
||||||
File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk");
|
string ds4lnkpath = Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk";
|
||||||
appShortcutToStartup();
|
if (!new FileInfo(ds4lnkpath).IsReadOnly)
|
||||||
changeStartupRoutine();
|
{
|
||||||
|
File.Delete(ds4lnkpath);
|
||||||
|
appShortcutToStartup();
|
||||||
|
changeStartupRoutine();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartWindowsCheckBox.Checked = false;
|
||||||
|
runStartupPanel.Visible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user