mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 12:34:18 +01:00
Merge branch 'almod90-safer-startup' into jay
This commit is contained in:
commit
7120feac88
@ -346,10 +346,19 @@ namespace DS4Windows.Forms
|
||||
|
||||
if (onlylnkpath != Process.GetCurrentProcess().MainModule.FileName)
|
||||
{
|
||||
File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk");
|
||||
string ds4lnkpath = Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\DS4Windows.lnk";
|
||||
if (!new FileInfo(ds4lnkpath).IsReadOnly)
|
||||
{
|
||||
File.Delete(ds4lnkpath);
|
||||
appShortcutToStartup();
|
||||
changeStartupRoutine();
|
||||
}
|
||||
else
|
||||
{
|
||||
StartWindowsCheckBox.Checked = false;
|
||||
runStartupPanel.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StartWindowsCheckBox.CheckedChanged += new EventHandler(StartWindowsCheckBox_CheckedChanged);
|
||||
|
Loading…
Reference in New Issue
Block a user