diff --git a/Universal x86 Tuning Utility V2/Universal x86 Tuning Utility V2.vdproj b/Universal x86 Tuning Utility V2/Universal x86 Tuning Utility V2.vdproj index eead69e..2223c9a 100644 --- a/Universal x86 Tuning Utility V2/Universal x86 Tuning Utility V2.vdproj +++ b/Universal x86 Tuning Utility V2/Universal x86 Tuning Utility V2.vdproj @@ -218,15 +218,15 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:Universal x86 Tuning Utility" - "ProductCode" = "8:{3EEA7625-DF93-48AE-972D-4599F116FE2E}" - "PackageCode" = "8:{05E20451-D6F4-431E-BBA5-078D26DA2B86}" + "ProductCode" = "8:{E6A74109-97CE-44C4-91D3-DAEBF88110E1}" + "PackageCode" = "8:{0F972A41-CC40-41B0-B48F-A5A17E5F32DC}" "UpgradeCode" = "8:{300E743A-4C69-440D-9425-14C446AB2658}" "AspNetVersion" = "8:" "RestartWWWService" = "11:FALSE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:2.0.2" + "ProductVersion" = "8:2.0.3" "Manufacturer" = "8:JamesCJ60" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" diff --git a/Universal x86 Tuning Utility/App.xaml.cs b/Universal x86 Tuning Utility/App.xaml.cs index 8743dfd..dc4de5f 100644 --- a/Universal x86 Tuning Utility/App.xaml.cs +++ b/Universal x86 Tuning Utility/App.xaml.cs @@ -23,6 +23,7 @@ using System.Diagnostics.Metrics; using System.Windows.Interop; using Universal_x86_Tuning_Utility.Views.Windows; +using RyzenSmu; namespace Universal_x86_Tuning_Utility { @@ -97,7 +98,7 @@ public static bool IsAdministrator() return principal.IsInRole(WindowsBuiltInRole.Administrator); } - public static string version = "2.0.2"; + public static string version = "2.0.3"; private Mutex mutex; private const string MutexName = "UniversalX86TuningUtility"; /// @@ -224,6 +225,8 @@ public static bool IsInternetAvailable() /// private async void OnExit(object sender, ExitEventArgs e) { + if(Family.TYPE != Family.ProcessorType.Intel) SMUCommands.RyzenAccess.Deinitialize(); + await _host.StopAsync(); _host.Dispose(); diff --git a/Universal x86 Tuning Utility/Scripts/AMD Backend/RyzenSmu.cs b/Universal x86 Tuning Utility/Scripts/AMD Backend/RyzenSmu.cs index 5e2cc00..6038f57 100644 --- a/Universal x86 Tuning Utility/Scripts/AMD Backend/RyzenSmu.cs +++ b/Universal x86 Tuning Utility/Scripts/AMD Backend/RyzenSmu.cs @@ -35,6 +35,7 @@ public static void setAddresses() if (Family.FAM == Family.RyzenFamily.Mendocino || Family.FAM == Family.RyzenFamily.Rembrandt || Family.FAM == Family.RyzenFamily.PhoenixPoint || Family.FAM == Family.RyzenFamily.StrixPoint) Socket_FT6_FP7_FP8(); if (Family.FAM == Family.RyzenFamily.Raphael || Family.FAM == Family.RyzenFamily.DragonRange || Family.FAM == Family.RyzenFamily.GraniteRidge || Family.FAM == Family.RyzenFamily.FireRange) Socket_AM5_V1(); + SMUCommands.RyzenAccess.Initialize(); } private static void Socket_FT5_FP5_AM4() @@ -319,7 +320,7 @@ private static void Socket_AM5_V1() } } - class SMUCommands + static class SMUCommands { public static List<(string, bool, uint)> commands; @@ -327,7 +328,6 @@ class SMUCommands public static void applySettings(string commandName, uint value) { - RyzenAccess.Initialize(); uint[] Args = new uint[6]; Args[0] = value; @@ -349,8 +349,6 @@ public static void applySettings(string commandName, uint value) Task.WaitAll(tasks.ToArray()); } else throw new ArgumentException($"Command '{commandName}' not found"); - - RyzenAccess.Deinitialize(); } } @@ -376,12 +374,11 @@ public enum Status : int { Smu.Status.CMD_REJECTED_BUSY, "CMD Rejected Busy" } }; - Ols RyzenNbAccesss; + Ols RyzenNbAccesss = new Ols(); public Smu(bool EnableDebug) { ShowDebug = EnableDebug; - RyzenNbAccesss = new Ols(); // Check WinRing0 status switch (RyzenNbAccesss.GetDllStatus()) diff --git a/Universal x86 Tuning Utility/Universal x86 Tuning Utility.csproj b/Universal x86 Tuning Utility/Universal x86 Tuning Utility.csproj index 72a8324..50353cf 100644 --- a/Universal x86 Tuning Utility/Universal x86 Tuning Utility.csproj +++ b/Universal x86 Tuning Utility/Universal x86 Tuning Utility.csproj @@ -15,10 +15,11 @@ True False © UXTU Team 2020 - 2023 - 2.0.2 - 2.0.2 + 2.0.3 + 2.0.3 true 10.0.22621.0 + 2.0.3 diff --git a/Universal x86 Tuning Utility/Views/Pages/DashboardPage.xaml b/Universal x86 Tuning Utility/Views/Pages/DashboardPage.xaml index ef23911..139470b 100644 --- a/Universal x86 Tuning Utility/Views/Pages/DashboardPage.xaml +++ b/Universal x86 Tuning Utility/Views/Pages/DashboardPage.xaml @@ -60,7 +60,7 @@ + Text="V2.0.3 Stable" />