mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-17 00:16:20 +01:00
Remove namespace usage
This commit is contained in:
parent
618c139607
commit
ad53caaac4
@ -5,7 +5,6 @@ using System.IO;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Management;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
@ -707,42 +706,15 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
originalsettingstext = tabSettings.Text;
|
originalsettingstext = tabSettings.Text;
|
||||||
bool deriverinstalled = false;
|
bool deriverinstalled = false;
|
||||||
try
|
deriverinstalled = Global.IsScpVBusInstalled();
|
||||||
|
if (!deriverinstalled)
|
||||||
{
|
{
|
||||||
deriverinstalled = Global.IsScpVBusInstalled();
|
Process p = new Process();
|
||||||
/*ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PnPSignedDriver");
|
p.StartInfo.FileName = Assembly.GetExecutingAssembly().Location;
|
||||||
|
p.StartInfo.Arguments = "driverinstall";
|
||||||
foreach (ManagementObject obj in searcher.Get())
|
p.StartInfo.Verb = "runas";
|
||||||
{
|
try { p.Start(); }
|
||||||
try
|
catch { }
|
||||||
{
|
|
||||||
if (obj.GetPropertyValue("DeviceName").ToString() == "Scp Virtual Bus Driver")
|
|
||||||
{
|
|
||||||
deriverinstalled = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!deriverinstalled)
|
|
||||||
{
|
|
||||||
Process p = new Process();
|
|
||||||
p.StartInfo.FileName = Assembly.GetExecutingAssembly().Location;
|
|
||||||
p.StartInfo.Arguments = "driverinstall";
|
|
||||||
p.StartInfo.Verb = "runas";
|
|
||||||
try { p.Start(); }
|
|
||||||
catch { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
if (!File.Exists(exepath + "\\Auto Profiles.xml") && !File.Exists(appDataPpath + "\\Auto Profiles.xml"))
|
|
||||||
{
|
|
||||||
linkSetup.LinkColor = Color.Green;
|
|
||||||
tabSettings.Text += " (" + Properties.Resources.InstallDriver + ")";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user