diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 2c346ed..497a50e 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -137,17 +137,27 @@ namespace UWPHook await Task.Run(() => { WebClient client = new WebClient(); - Stream stream = client.OpenRead(imageUrl); - Bitmap bitmap; bitmap = new Bitmap(stream); + Stream stream = null; + try + { + stream = client.OpenRead(imageUrl); + } + catch (Exception e) + { + //Image with error? + //Skip for now + } - if (bitmap != null) + if (stream != null) { + Bitmap bitmap; bitmap = new Bitmap(stream); bitmap.Save(destinationFilename, format); + stream.Flush(); + stream.Close(); + client.Dispose(); } - stream.Flush(); - stream.Close(); - client.Dispose(); + }); } @@ -299,7 +309,7 @@ namespace UWPHook IsHidden = 0, OpenVR = 0, ShortcutPath = "", - Tags = new string[0], + Tags = new string[2] {"XBOX", "READY TO PLAY" }, Devkit = 0, DevkitGameID = "", LastPlayTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds(), diff --git a/UWPHook/SettingsWindow.xaml b/UWPHook/SettingsWindow.xaml index a5124ce..82236c0 100644 --- a/UWPHook/SettingsWindow.xaml +++ b/UWPHook/SettingsWindow.xaml @@ -20,18 +20,18 @@ - + - - - - - - + + + + + + @@ -42,19 +42,48 @@ - -