From b219ff5af4886fb572213361387b70d342d3e614 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 14 Apr 2024 23:25:10 +0200 Subject: [PATCH] Updates tweak --- app/Updates.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Updates.cs b/app/Updates.cs index 4f3bf8dc..ec9bc87d 100644 --- a/app/Updates.cs +++ b/app/Updates.cs @@ -1,4 +1,5 @@ using GHelper.UI; +using Ryzen; using System.Diagnostics; using System.Management; using System.Net; @@ -60,14 +61,16 @@ namespace GHelper ClearTable(tableBios); ClearTable(tableDrivers); + var cpu = RyzenControl.IsAMD() ? "A" : "I"; + Task.Run(async () => { - DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDBIOS?website=global&model={model}&cpu={model}", 1, tableBios); + DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDBIOS?website=global&model={model}&cpu={cpu}", 1, tableBios); }); Task.Run(async () => { - DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDDrivers?website=global&model={model}&cpu={model}&osid=52", 0, tableDrivers); + DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDDrivers?website=global&model={model}&cpu={cpu}&osid=52", 0, tableDrivers); }); }