diff --git a/UWPHook/AppEntry.cs b/UWPHook/AppEntry.cs index 87a0404..8f643f3 100644 --- a/UWPHook/AppEntry.cs +++ b/UWPHook/AppEntry.cs @@ -106,6 +106,19 @@ namespace UWPHook return result; } + public string isKnownApp() + { + if (_aumid.Contains("Microsoft.SeaofThieves")) + { + return "Sea of Thieves"; + } + else if (_aumid.Contains("Microsoft.DeltaPC")) + { + return "Gears of War: Ultimate Edition"; + } + return "Name not found, double click here to edit"; + } + public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) diff --git a/UWPHook/FullScreenLauncher.xaml.cs b/UWPHook/FullScreenLauncher.xaml.cs index 2b01327..3c7676f 100644 --- a/UWPHook/FullScreenLauncher.xaml.cs +++ b/UWPHook/FullScreenLauncher.xaml.cs @@ -29,6 +29,11 @@ namespace UWPHook pallet.SetLightDark(true); } + private void Chip2_Click(object sender, RoutedEventArgs e) + { + System.Diagnostics.Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9YPV3FHEFRAUQ"); + } + string GetLauncherText() { int n = DateTime.Now.Second; diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 81f68ad..5bc86ee 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -248,16 +248,27 @@ namespace UWPHook { //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. - var valor = app.Replace("\r\n", "").Split('|'); - if (!String.IsNullOrWhiteSpace(valor[0])) + var values = app.Replace("\r\n", "").Split('|'); + if (!String.IsNullOrWhiteSpace(values[0])) { //We get the default square tile to find where the app stores it's icons, then we resolve which one is the widest - string logosPath = Path.GetDirectoryName(valor[1]); + string logosPath = Path.GetDirectoryName(values[1]); Application.Current.Dispatcher.BeginInvoke((Action)delegate () { - Apps.Entries.Add(new AppEntry() { Name = valor[0], IconPath = logosPath, Aumid = valor[2], Selected = false }); + Apps.Entries.Add(new AppEntry() { Name = values[0], IconPath = logosPath, Aumid = values[2], Selected = false }); }); } + if (values.Length > 2) + { + if (values[2].Contains("Microsoft.SeaofThieves")) + { + values[2] = "Sea of Thieves"; + } + else if (values[2].Contains("Microsoft.DeltaPC")) + { + values[2] = "Gears of War: Ultimate Edition"; + } + } } } catch (Exception ex)