Remove namespace usage

This commit is contained in:
Travis Nickles 2018-01-28 02:25:35 -06:00
parent 618c139607
commit ad53caaac4

View File

@ -5,7 +5,6 @@ using System.IO;
using System.Reflection;
using System.Collections.Generic;
using System.Net;
using System.Management;
using System.Drawing;
using Microsoft.Win32;
using System.Diagnostics;
@ -707,25 +706,7 @@ namespace DS4Windows
{
originalsettingstext = tabSettings.Text;
bool deriverinstalled = false;
try
{
deriverinstalled = Global.IsScpVBusInstalled();
/*ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PnPSignedDriver");
foreach (ManagementObject obj in searcher.Get())
{
try
{
if (obj.GetPropertyValue("DeviceName").ToString() == "Scp Virtual Bus Driver")
{
deriverinstalled = true;
break;
}
}
catch { }
}
*/
if (!deriverinstalled)
{
Process p = new Process();
@ -736,15 +717,6 @@ namespace DS4Windows
catch { }
}
}
catch
{
if (!File.Exists(exepath + "\\Auto Profiles.xml") && !File.Exists(appDataPpath + "\\Auto Profiles.xml"))
{
linkSetup.LinkColor = Color.Green;
tabSettings.Text += " (" + Properties.Resources.InstallDriver + ")";
}
}
}
private void Check_Version(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{