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 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UWPHook/SettingsWindow.xaml.cs b/UWPHook/SettingsWindow.xaml.cs
index 74faae5..337d318 100644
--- a/UWPHook/SettingsWindow.xaml.cs
+++ b/UWPHook/SettingsWindow.xaml.cs
@@ -33,6 +33,10 @@ namespace UWPHook
language_toggle.IsChecked = Properties.Settings.Default.ChangeLanguage;
streaming_toggle.IsChecked = Properties.Settings.Default.StreamMode;
steamgriddb_api_key.Text = Properties.Settings.Default.SteamGridDbApiKey;
+ style_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_Style;
+ type_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_Type;
+ nfsw_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_nfsw;
+ humor_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_Humor;
}
private void saveButton_Click(object sender, RoutedEventArgs e)
@@ -42,6 +46,10 @@ namespace UWPHook
Properties.Settings.Default.Seconds = Int32.Parse(seconds_comboBox.SelectedItem.ToString().Substring(0, 1));
Properties.Settings.Default.StreamMode = (bool)streaming_toggle.IsChecked;
Properties.Settings.Default.SteamGridDbApiKey = steamgriddb_api_key.Text;
+ Properties.Settings.Default.SelectedSteamGridDB_Style = style_comboBox.SelectedIndex;
+ Properties.Settings.Default.SelectedSteamGridDB_Type = type_comboBox.SelectedIndex;
+ Properties.Settings.Default.SelectedSteamGridDB_nfsw = nfsw_comboBox.SelectedIndex;
+ Properties.Settings.Default.SelectedSteamGridDB_Humor = humor_comboBox.SelectedIndex;
Properties.Settings.Default.Save();
this.Close();
}
diff --git a/UWPHook/SteamGridDb/SteamGridDbApi.cs b/UWPHook/SteamGridDb/SteamGridDbApi.cs
index 3e375c1..39a453c 100644
--- a/UWPHook/SteamGridDb/SteamGridDbApi.cs
+++ b/UWPHook/SteamGridDb/SteamGridDbApi.cs
@@ -26,7 +26,7 @@ namespace UWPHook.SteamGridDb
}
///
- /// Gets a list of
+ /// Search SteamGridDB for a game
///
/// Name of the game
/// Array of games corresponding to the provided name