diff --git a/README.md b/README.md index 74b8100..bc1fbd5 100644 --- a/README.md +++ b/README.md @@ -51,16 +51,28 @@ Go to "C:\Users\\AppData\Local\Packages" Find the App you want to add, copy the whole folder name and add "!App" to the end on UWPHook, should look like this: +![](http://imgur.com/NMx9IAR.png) + +![](http://imgur.com/2RlKi1X.png) + Repeat previous steps to add the game to Steam. If you can't find the app, there's a easier way to determine its folder name: Press "Windows+R" and type "shell:appsfolder", you will be taken to a folder containing every metro app and other things on your PC +![](http://imgur.com/W1kH0R4.png) + Find the game you want, right click it and create shortcut, Windows will place a shortcut on your desktop. +![](http://imgur.com/Z9p80Hy.png) + Right click the shortcut, on targettype will be the app's folder name, making it easier to find the game on Packages folder. +![](http://imgur.com/HU3I2NU.png) + +To remove a game form the list, double click the desired game + # Troubleshooting # - **I added the game's url to UWPHook but it won't start whatsoever** diff --git a/UWPHook/MainWindow.xaml b/UWPHook/MainWindow.xaml index a0fcae1..7ebd34b 100644 --- a/UWPHook/MainWindow.xaml +++ b/UWPHook/MainWindow.xaml @@ -17,7 +17,7 @@ - + diff --git a/UWPHook/MainWindow.xaml.cs b/UWPHook/MainWindow.xaml.cs index 74971b2..5a21afb 100644 --- a/UWPHook/MainWindow.xaml.cs +++ b/UWPHook/MainWindow.xaml.cs @@ -9,7 +9,7 @@ namespace UWPHook /// public partial class MainWindow : Window { - GameModel games; + GameModel gamesView; public MainWindow() { InitializeComponent(); @@ -17,8 +17,8 @@ namespace UWPHook private void Window_Loaded(object sender, RoutedEventArgs e) { - games = new GameModel(); - listView.ItemsSource = games.games; + gamesView = new GameModel(); + listView.ItemsSource = gamesView.games; var argument = Environment.GetCommandLineArgs(); string argumentGame = ""; @@ -29,11 +29,12 @@ namespace UWPHook if (argument != null) { - foreach (Game game in games.games) + foreach (Game game in gamesView.games) { if (game.game_alias.ToLower() == argumentGame.ToLower().Trim()) { Process.Start(@"shell:AppsFolder\" + game.game_path); + break; } } } @@ -41,8 +42,14 @@ namespace UWPHook private void addButton_Click(object sender, RoutedEventArgs e) { - games.Store(); - games.Add(new Game { game_alias = alias_textBox.Text, game_path = path_textBox.Text }); + gamesView.Add(new Game { game_alias = alias_textBox.Text, game_path = path_textBox.Text }); + gamesView.Store(); + } + + private void listView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) + { + gamesView.games.RemoveAt(listView.SelectedIndex); + gamesView.Store(); } } } diff --git a/UWPHook/bin/Debug/UWPHook.exe b/UWPHook/bin/Debug/UWPHook.exe index 8c12936..ac057e9 100644 Binary files a/UWPHook/bin/Debug/UWPHook.exe and b/UWPHook/bin/Debug/UWPHook.exe differ diff --git a/UWPHook/bin/Debug/UWPHook.pdb b/UWPHook/bin/Debug/UWPHook.pdb index f33d5e6..a08516f 100644 Binary files a/UWPHook/bin/Debug/UWPHook.pdb and b/UWPHook/bin/Debug/UWPHook.pdb differ diff --git a/UWPHook/bin/Debug/UWPHook.vshost.exe.manifest b/UWPHook/bin/Debug/UWPHook.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/UWPHook/bin/Debug/UWPHook.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/UWPHook/bin/Release/UWPHook.exe b/UWPHook/bin/Release/UWPHook.exe index 08d1273..38c7848 100644 Binary files a/UWPHook/bin/Release/UWPHook.exe and b/UWPHook/bin/Release/UWPHook.exe differ diff --git a/UWPHook/bin/Release/UWPHook.pdb b/UWPHook/bin/Release/UWPHook.pdb index 9f2204c..5ff27f1 100644 Binary files a/UWPHook/bin/Release/UWPHook.pdb and b/UWPHook/bin/Release/UWPHook.pdb differ diff --git a/UWPHook/obj/Debug/MainWindow.g.cs b/UWPHook/obj/Debug/MainWindow.g.cs index e5f382b..dd61c97 100644 --- a/UWPHook/obj/Debug/MainWindow.g.cs +++ b/UWPHook/obj/Debug/MainWindow.g.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "0403F259EB5896FF153F516A6A6E16E6" +#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B6478F672D97C71223B8E078DABEFE7F" //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -136,6 +136,12 @@ namespace UWPHook { return; case 2: this.listView = ((System.Windows.Controls.ListView)(target)); + + #line 20 "..\..\MainWindow.xaml" + this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listView_MouseDoubleClick); + + #line default + #line hidden return; case 3: this.addButton = ((System.Windows.Controls.Button)(target)); diff --git a/UWPHook/obj/Debug/MainWindow.g.i.cs b/UWPHook/obj/Debug/MainWindow.g.i.cs index e5f382b..dd61c97 100644 --- a/UWPHook/obj/Debug/MainWindow.g.i.cs +++ b/UWPHook/obj/Debug/MainWindow.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "0403F259EB5896FF153F516A6A6E16E6" +#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B6478F672D97C71223B8E078DABEFE7F" //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -136,6 +136,12 @@ namespace UWPHook { return; case 2: this.listView = ((System.Windows.Controls.ListView)(target)); + + #line 20 "..\..\MainWindow.xaml" + this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listView_MouseDoubleClick); + + #line default + #line hidden return; case 3: this.addButton = ((System.Windows.Controls.Button)(target)); diff --git a/UWPHook/obj/Debug/UWPHook.exe b/UWPHook/obj/Debug/UWPHook.exe index 8c12936..ac057e9 100644 Binary files a/UWPHook/obj/Debug/UWPHook.exe and b/UWPHook/obj/Debug/UWPHook.exe differ diff --git a/UWPHook/obj/Debug/UWPHook.g.resources b/UWPHook/obj/Debug/UWPHook.g.resources index 0db06aa..822fb13 100644 Binary files a/UWPHook/obj/Debug/UWPHook.g.resources and b/UWPHook/obj/Debug/UWPHook.g.resources differ diff --git a/UWPHook/obj/Debug/UWPHook.pdb b/UWPHook/obj/Debug/UWPHook.pdb index f33d5e6..a08516f 100644 Binary files a/UWPHook/obj/Debug/UWPHook.pdb and b/UWPHook/obj/Debug/UWPHook.pdb differ diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache b/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache index 430a9a6..3945a78 100644 --- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache +++ b/UWPHook/obj/Debug/UWPHook_MarkupCompile.cache @@ -4,16 +4,16 @@ winexe C# .cs -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\ +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\ UWPHook none false DEBUG;TRACE -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml 11151548125 6-470569544 -14-1541981460 +14-2024189101 MainWindow.xaml; False diff --git a/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref b/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref index 30c5d9e..48d979f 100644 --- a/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref +++ b/UWPHook/obj/Debug/UWPHook_MarkupCompile.lref @@ -1,4 +1,4 @@  -Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;; +FC:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;; diff --git a/UWPHook/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/UWPHook/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index 2fa1542..d42b3e0 100644 Binary files a/UWPHook/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/UWPHook/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/UWPHook/obj/Release/MainWindow.g.cs b/UWPHook/obj/Release/MainWindow.g.cs index e5f382b..dd61c97 100644 --- a/UWPHook/obj/Release/MainWindow.g.cs +++ b/UWPHook/obj/Release/MainWindow.g.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "0403F259EB5896FF153F516A6A6E16E6" +#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B6478F672D97C71223B8E078DABEFE7F" //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -136,6 +136,12 @@ namespace UWPHook { return; case 2: this.listView = ((System.Windows.Controls.ListView)(target)); + + #line 20 "..\..\MainWindow.xaml" + this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listView_MouseDoubleClick); + + #line default + #line hidden return; case 3: this.addButton = ((System.Windows.Controls.Button)(target)); diff --git a/UWPHook/obj/Release/MainWindow.g.i.cs b/UWPHook/obj/Release/MainWindow.g.i.cs index e5f382b..dd61c97 100644 --- a/UWPHook/obj/Release/MainWindow.g.i.cs +++ b/UWPHook/obj/Release/MainWindow.g.i.cs @@ -1,4 +1,4 @@ -#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "0403F259EB5896FF153F516A6A6E16E6" +#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B6478F672D97C71223B8E078DABEFE7F" //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -136,6 +136,12 @@ namespace UWPHook { return; case 2: this.listView = ((System.Windows.Controls.ListView)(target)); + + #line 20 "..\..\MainWindow.xaml" + this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listView_MouseDoubleClick); + + #line default + #line hidden return; case 3: this.addButton = ((System.Windows.Controls.Button)(target)); diff --git a/UWPHook/obj/Release/UWPHook.csprojResolveAssemblyReference.cache b/UWPHook/obj/Release/UWPHook.csprojResolveAssemblyReference.cache index 699d3cf..8744e98 100644 Binary files a/UWPHook/obj/Release/UWPHook.csprojResolveAssemblyReference.cache and b/UWPHook/obj/Release/UWPHook.csprojResolveAssemblyReference.cache differ diff --git a/UWPHook/obj/Release/UWPHook.exe b/UWPHook/obj/Release/UWPHook.exe index 08d1273..38c7848 100644 Binary files a/UWPHook/obj/Release/UWPHook.exe and b/UWPHook/obj/Release/UWPHook.exe differ diff --git a/UWPHook/obj/Release/UWPHook.pdb b/UWPHook/obj/Release/UWPHook.pdb index 9f2204c..5ff27f1 100644 Binary files a/UWPHook/obj/Release/UWPHook.pdb and b/UWPHook/obj/Release/UWPHook.pdb differ diff --git a/UWPHook/obj/Release/UWPHook_MarkupCompile.cache b/UWPHook/obj/Release/UWPHook_MarkupCompile.cache index 5f8c3c3..13d6bae 100644 --- a/UWPHook/obj/Release/UWPHook_MarkupCompile.cache +++ b/UWPHook/obj/Release/UWPHook_MarkupCompile.cache @@ -4,16 +4,16 @@ winexe C# .cs -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\ +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\ UWPHook none false TRACE -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml 11151548125 6-470569544 -14-1541981460 +14-2024189101 MainWindow.xaml; False diff --git a/UWPHook/obj/Release/UWPHook_MarkupCompile.i.cache b/UWPHook/obj/Release/UWPHook_MarkupCompile.i.cache index f6c58a6..9a0b6f5 100644 --- a/UWPHook/obj/Release/UWPHook_MarkupCompile.i.cache +++ b/UWPHook/obj/Release/UWPHook_MarkupCompile.i.cache @@ -4,16 +4,16 @@ winexe C# .cs -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\ +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\ UWPHook none false TRACE -c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml +C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml 11151548125 10-965409959 -14-1541981460 +14-2024189101 MainWindow.xaml; True diff --git a/UWPHook/obj/Release/UWPHook_MarkupCompile.i.lref b/UWPHook/obj/Release/UWPHook_MarkupCompile.i.lref index 30c5d9e..48d979f 100644 --- a/UWPHook/obj/Release/UWPHook_MarkupCompile.i.lref +++ b/UWPHook/obj/Release/UWPHook_MarkupCompile.i.lref @@ -1,4 +1,4 @@  -Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;; +FC:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;; diff --git a/UWPHook/obj/Release/UWPHook_MarkupCompile.lref b/UWPHook/obj/Release/UWPHook_MarkupCompile.lref index 30c5d9e..48d979f 100644 --- a/UWPHook/obj/Release/UWPHook_MarkupCompile.lref +++ b/UWPHook/obj/Release/UWPHook_MarkupCompile.lref @@ -1,4 +1,4 @@  -Fc:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;; +FC:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\MainWindow.xaml;;