Fixing Forza Apex and VDFTooShort

UWPTest 2.1.4
Brian Lima 8 years ago
parent a07c23002e
commit 760bdee879

@ -89,14 +89,18 @@ namespace UWPHook
{ {
try try
{ {
VDFEntry[] shortcuts; VDFEntry[] shortcuts = new VDFEntry[0];
try try
{ {
shortcuts = SteamManager.ReadShortcuts(user); shortcuts = SteamManager.ReadShortcuts(user);
} }
catch (Exception ex) catch (Exception ex)
{ {
throw new Exception("Error trying to load existing Steam shortcuts." + Environment.NewLine + ex.Message); //If it's a short VDF, let's just overwrite it
if (ex.GetType() != typeof(VDFTooShortException))
{
throw new Exception("Error trying to load existing Steam shortcuts." + Environment.NewLine + ex.Message);
}
} }
if (shortcuts != null) if (shortcuts != null)
@ -173,6 +177,8 @@ namespace UWPHook
//Remove end lines from the String and split both values, I split the appname and the AUMID using | //Remove end lines from the String and split both values, I split the appname and the AUMID using |
//I hope no apps have that in their name. Ever. //I hope no apps have that in their name. Ever.
var valor = app.Replace("\r\n", "").Split('|'); var valor = app.Replace("\r\n", "").Split('|');
//Frameworks by Microsoft don fill the displayname at all ot have ms-resource as a name instead, this excludes them making the list less bloated
if (!String.IsNullOrWhiteSpace(valor[0]) && !valor[0].Contains("ms-resource")) if (!String.IsNullOrWhiteSpace(valor[0]) && !valor[0].Contains("ms-resource"))
{ {
Application.Current.Dispatcher.BeginInvoke((Action)delegate () Application.Current.Dispatcher.BeginInvoke((Action)delegate ()

@ -51,5 +51,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.3.0")] [assembly: AssemblyVersion("2.1.4.0")]
[assembly: AssemblyFileVersion("2.1.3.0")] [assembly: AssemblyFileVersion("2.1.4.0")]

@ -7,7 +7,7 @@ foreach ($app in $installedapps)
foreach ($appx in (Get-AppxPackageManifest $app)) foreach ($appx in (Get-AppxPackageManifest $app))
{ {
$aumidList += $appx.Package.Applications.Application.VisualElements.DisplayName + " | "+ $aumidList += $appx.Package.Properties.DisplayName + " | "+
$app.packagefamilyname + "!" + $appx.package.applications.application.id + ";" $app.packagefamilyname + "!" + $appx.package.applications.application.id + ";"
} }

Loading…
Cancel
Save