private static void Main(string[] args) { string message = "TinyNvidiaUpdateChecker v" + offlineVer; LogManager.Log(message, LogManager.Level.INFO); Console.Title = message; CheckArgs(args); RunIntro(); // will run intro if no args needs to output stuff if (showUI) { AllocConsole(); if (!debug) { GenericHandler.DisableQuickEdit(); } } SettingManager.ConfigInit(); CheckDependencies(); CheckWinVer(); GetLanguage(); if (SettingManager.ReadSettingBool("Check for Updates")) { SearchForUpdates(); } GpuInfo(); bool hasSelected = false; int iOffline = 0; try { iOffline = Convert.ToInt32(OfflineGPUVersion.Replace(".", string.Empty)); } catch (Exception ex) { OfflineGPUVersion = "Unknown"; Console.WriteLine("Could not retrive OfflineGPUVersion!"); Console.WriteLine(ex.ToString()); } int iOnline = Convert.ToInt32(OnlineGPUVersion.Replace(".", string.Empty)); if (iOnline == iOffline) { Console.WriteLine("Your GPU drivers are up-to-date!"); } else { if (iOffline > iOnline) { Console.WriteLine("Your current GPU driver is newer than remote!"); } if (iOnline < iOffline) { Console.WriteLine("Your GPU drivers are up-to-date!"); } else { Console.WriteLine("There are new drivers available to download!"); hasSelected = true; if (confirmDL) { DownloadDriverQuiet(true); } else { DownloadDriver(); } } } if (!hasSelected && forceDL) { if (confirmDL) { DownloadDriverQuiet(true); } else { DownloadDriver(); } } Console.WriteLine(); Console.WriteLine("Finished! Press any key to exit."); if (showUI) { Console.ReadKey(); } LogManager.Log("BYE!", LogManager.Level.INFO); Environment.Exit(0); }