diff --git a/UWPHook/App.config b/UWPHook/App.config
index 7185a0c..3265381 100644
--- a/UWPHook/App.config
+++ b/UWPHook/App.config
@@ -83,6 +83,9 @@
False
+
+ READY TO PLAY,XBOX
+
diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs
index 2aaa493..4e265b7 100644
--- a/UWPHook/GamesWindow.xaml.cs
+++ b/UWPHook/GamesWindow.xaml.cs
@@ -156,8 +156,6 @@ namespace UWPHook
stream.Close();
client.Dispose();
}
-
-
});
}
@@ -261,7 +259,9 @@ namespace UWPHook
private async Task ExportGames()
{
+ string[] tags = Settings.Default.Tags.Split(',');
string steam_folder = SteamManager.GetSteamFolder();
+
if (Directory.Exists(steam_folder))
{
var users = SteamManager.GetUsers(steam_folder);
@@ -319,7 +319,7 @@ namespace UWPHook
IsHidden = 0,
OpenVR = 0,
ShortcutPath = "",
- Tags = new string[2] {"XBOX", "READY TO PLAY" },
+ Tags = tags,
Devkit = 0,
DevkitGameID = "",
LastPlayTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
diff --git a/UWPHook/Properties/Settings.Designer.cs b/UWPHook/Properties/Settings.Designer.cs
index 710e553..fb34c2c 100644
--- a/UWPHook/Properties/Settings.Designer.cs
+++ b/UWPHook/Properties/Settings.Designer.cs
@@ -207,5 +207,17 @@ namespace UWPHook.Properties {
this["OfferedSteamGridDB"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("READY TO PLAY,XBOX")]
+ public string Tags {
+ get {
+ return ((string)(this["Tags"]));
+ }
+ set {
+ this["Tags"] = value;
+ }
+ }
}
}
diff --git a/UWPHook/Properties/Settings.settings b/UWPHook/Properties/Settings.settings
index de1e029..fc91477 100644
--- a/UWPHook/Properties/Settings.settings
+++ b/UWPHook/Properties/Settings.settings
@@ -67,5 +67,8 @@
False
+
+ READY TO PLAY,XBOX
+
\ No newline at end of file
diff --git a/UWPHook/SettingsWindow.xaml b/UWPHook/SettingsWindow.xaml
index e0b1788..0f86e9a 100644
--- a/UWPHook/SettingsWindow.xaml
+++ b/UWPHook/SettingsWindow.xaml
@@ -11,7 +11,7 @@
TextElement.FontWeight="Medium"
TextElement.FontSize="14"
FontFamily="Segoe UI Light"
- Title="Settings" Height="600" Width="800" Icon="Resources/hook2.ico">
+ Title="Settings" Height="638" Width="800" Icon="Resources/hook2.ico">
@@ -28,10 +28,10 @@
-
-
-
-
+
+
+
+
@@ -45,19 +45,19 @@
-
+
-
+
-
+
@@ -85,19 +85,21 @@
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
diff --git a/UWPHook/SettingsWindow.xaml.cs b/UWPHook/SettingsWindow.xaml.cs
index 8af9a23..e93782d 100644
--- a/UWPHook/SettingsWindow.xaml.cs
+++ b/UWPHook/SettingsWindow.xaml.cs
@@ -37,6 +37,7 @@ namespace UWPHook
type_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_Type;
nfsw_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_nfsw;
humor_comboBox.SelectedIndex = Properties.Settings.Default.SelectedSteamGridDB_Humor;
+ tags_textBox.Text = Properties.Settings.Default.Tags;
}
private void saveButton_Click(object sender, RoutedEventArgs e)
@@ -50,6 +51,7 @@ namespace UWPHook
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.Tags = tags_textBox.Text;
Properties.Settings.Default.Save();
this.Close();
}