mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-13 16:49:08 +01:00
Added extra launch parameter for DS4Updater
Tell DS4Updater to attempt to autolaunch DS4W as normal user Related to issue #1113
This commit is contained in:
parent
942342d3f9
commit
90f5a1b5d7
@ -180,7 +180,14 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
|
||||
using (Process p = new Process())
|
||||
{
|
||||
p.StartInfo.FileName = System.IO.Path.Combine(Global.exedirpath, "DS4Updater.exe");
|
||||
p.StartInfo.Arguments = "-autolaunch";
|
||||
bool isAdmin = Global.IsAdministrator();
|
||||
List<string> argList = new List<string>();
|
||||
argList.Add("-autolaunch");
|
||||
if (!isAdmin)
|
||||
{
|
||||
argList.Add("-user");
|
||||
}
|
||||
p.StartInfo.Arguments = string.Join(" ", argList);
|
||||
if (Global.AdminNeeded())
|
||||
p.StartInfo.Verb = "runas";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user