diff --git a/Code/OS/OSUtils.cs b/Code/OS/OSUtils.cs index 5a7e47e..ad83544 100644 --- a/Code/OS/OSUtils.cs +++ b/Code/OS/OSUtils.cs @@ -242,5 +242,26 @@ namespace Flowframes.OS ShowNotification(title, text); } + + public static string GetGpus () + { + ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration"); + + List gpus = new List(); + + foreach (ManagementObject mo in searcher.Get()) + { + foreach (PropertyData property in mo.Properties) + { + if (property.Name == "Description") + { + gpus.Add(property.Value.ToString()); + Logger.Log("[GetGpus] Found GPU: " + gpus, true); + } + } + } + + return string.Join(", ", gpus); + } } } \ No newline at end of file diff --git a/Code/OS/Updater.cs b/Code/OS/Updater.cs index 8a043c6..db07a99 100644 --- a/Code/OS/Updater.cs +++ b/Code/OS/Updater.cs @@ -137,7 +137,7 @@ namespace Flowframes.OS Logger.Log($"You are running Flowframes {installed}. The latest Patreon version is {latestPat}, the latest free version is {latestFree}."); if (installed.ToString() != "0.0.0") - Program.mainForm.Text = "Flowframes " + installed.ToString(); + Program.mainForm.Text = $"Flowframes {installed} [GPU: {OSUtils.GetGpus().Remove("NVIDIA ").Remove("AMD ").Remove("Intel ")}]"; } public static async Task UpdateModelList()