Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Nov 22, 2023
1 parent c32e601 commit 6e2acc3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Universal x86 Tuning Utility"
"ProductCode" = "8:{15DEE06D-F328-4AE8-BFF6-D70575C8511F}"
"PackageCode" = "8:{840B12A2-CF41-40D6-94AF-006A1F526EA4}"
"ProductCode" = "8:{1BD67EDE-2093-4DE2-9B81-B839B405588C}"
"PackageCode" = "8:{99FFEC1E-DA53-4EFA-BEC4-8E534963B734}"
"UpgradeCode" = "8:{300E743A-4C69-440D-9425-14C446AB2658}"
"AspNetVersion" = "8:"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:2.2.0"
"ProductVersion" = "8:2.2.1"
"Manufacturer" = "8:JamesCJ60"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down
20 changes: 11 additions & 9 deletions Universal x86 Tuning Utility/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static bool IsAdministrator()
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}

public static string version = "2.2.0";
public static string version = "2.2.1";
private Mutex mutex;
private const string MutexName = "UniversalX86TuningUtility";

Expand Down Expand Up @@ -108,16 +108,18 @@ private async void OnStartup(object sender, StartupEventArgs e)
// Page resolver service
services.AddSingleton<IPageService, PageService>();


if (product.Contains("ROG") || product.Contains("TUF") || product.Contains("Ally") || product.Contains("Flow") || product.ToLower().Contains("vivobook") || product.ToLower().Contains("zenbook"))
try
{
wmi = new ASUSWmi();
Settings.Default.isASUS = true;
Settings.Default.Save();
if (product.Contains("ROG") || product.Contains("TUF") || product.Contains("Ally") || product.Contains("Flow") || product.ToLower().Contains("vivobook") || product.ToLower().Contains("zenbook"))
{
wmi = new ASUSWmi();
Settings.Default.isASUS = true;
Settings.Default.Save();

services.AddSingleton(wmi);
services.AddSingleton<XgMobileConnectionService>();
}
services.AddSingleton(wmi);
services.AddSingleton<XgMobileConnectionService>();
}
} catch { }

// Theme manipulation
services.AddSingleton<IThemeService, ThemeService>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<UseWindowsForms>True</UseWindowsForms>
<SignAssembly>False</SignAssembly>
<Copyright>© UXTU Team 2020 - 2023</Copyright>
<AssemblyVersion>2.2.0</AssemblyVersion>
<FileVersion>2.2.0</FileVersion>
<AssemblyVersion>2.2.1</AssemblyVersion>
<FileVersion>2.2.1</FileVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SupportedOSPlatformVersion>10.0.22621.0</SupportedOSPlatformVersion>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<TextBlock
FontSize="18"
Foreground="#B7FFFFFF"
Text="V2.2.0 Stable" />
Text="V2.2.1 Stable" />
<ui:Button
Name="btnPremade"
Height="36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ await Task.Run(() => {
Misc.Start();
}
}
else RTSS.startRTSS();
}
else RTSS.startRTSS();

}
catch (Exception ex) { }
}
Expand Down

0 comments on commit 6e2acc3

Please sign in to comment.