Skip to content

Commit

Permalink
Combine some outputs to save a few lines
Browse files Browse the repository at this point in the history
  • Loading branch information
XenHat committed Apr 15, 2019
1 parent 1c098c2 commit 84e10b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static bool IsOutOfDate(string newVersion)
{
return true;
}
Console.WriteLine("Determining driver version...");
Console.Write("Determining driver version... ");
// Add fallback value required for math, if driver is missing/not detected.
string currVer = "000.00";
//ManagementObjectSearcher objSearcher = new ManagementObjectSearcher("Select * from Win32_PnPSignedDriver");
Expand All @@ -83,7 +83,7 @@ public static bool IsOutOfDate(string newVersion)
string[] version = obj["DriverVersion"].ToString().Split('.');
{
string nvidiaVersion = ((version.GetValue(2) + version.GetValue(3)?.ToString()).Substring(1)).Insert(3, ".");
Console.WriteLine("Current Driver Version: " + nvidiaVersion);
Console.WriteLine(nvidiaVersion);
currVer = nvidiaVersion;
}
}
Expand Down Expand Up @@ -453,7 +453,7 @@ private static void Main(string[] args)
if (!OptionContainer.NoUpdate)
{
// FIXME: This shouldn't run unless we have to...
Console.WriteLine("Finding latest Nvidia Driver Version...");
Console.Write("Finding latest Nvidia Driver Version... ");
WebClient w = new WebClient();
string s = w.DownloadString(address: WebsiteUrls.DriverListSource);
//#if DEBUG
Expand Down Expand Up @@ -499,7 +499,7 @@ private static void Main(string[] args)
//string tempver = latestDriver.ToString();
//latestDriver = StringToFloat(tempver);
#if !DEBUG
Console.WriteLine("Latest Driver: " + driverTitles.Last());
Console.WriteLine(driverTitles.Last());
#endif

// Build new URL from latest version
Expand Down

0 comments on commit 84e10b0

Please sign in to comment.