From 84e10b011353a698904e8b0e983a92a466dd3f56 Mon Sep 17 00:00:00 2001 From: --global Date: Mon, 15 Apr 2019 01:04:02 -0400 Subject: [PATCH] Combine some outputs to save a few lines --- Src/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Program.cs b/Src/Program.cs index 52cdb09..c56f122 100644 --- a/Src/Program.cs +++ b/Src/Program.cs @@ -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"); @@ -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; } } @@ -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 @@ -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