diff --git a/UWPHook.sln b/UWPHook.sln
index 0c780bf..e567898 100644
--- a/UWPHook.sln
+++ b/UWPHook.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWPHook", "UWPHook\UWPHook.
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSteam", "..\SharpSteam\SharpSteam\SharpSteam.csproj", "{D0A686FB-B373-4FBC-A0DD-C3417276A816}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VDFParser", "..\..\..\Downloads\SharpSteam-master\SharpSteam-master\VDFParser\VDFParser\VDFParser.csproj", "{9543FB59-1EB6-4638-B24C-B12B9D4A15FC}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
{D0A686FB-B373-4FBC-A0DD-C3417276A816}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0A686FB-B373-4FBC-A0DD-C3417276A816}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0A686FB-B373-4FBC-A0DD-C3417276A816}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9543FB59-1EB6-4638-B24C-B12B9D4A15FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9543FB59-1EB6-4638-B24C-B12B9D4A15FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9543FB59-1EB6-4638-B24C-B12B9D4A15FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9543FB59-1EB6-4638-B24C-B12B9D4A15FC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/UWPHook/App.xaml b/UWPHook/App.xaml
index 21febfc..5fb6b15 100644
--- a/UWPHook/App.xaml
+++ b/UWPHook/App.xaml
@@ -2,8 +2,15 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:UWPHook"
- StartupUri="MainWindow.xaml">
+ StartupUri="GamesWindow.xaml">
-
+
+
+
+
+
+
+
+
diff --git a/UWPHook/AppEntry.cs b/UWPHook/AppEntry.cs
new file mode 100644
index 0000000..bcf5c43
--- /dev/null
+++ b/UWPHook/AppEntry.cs
@@ -0,0 +1,50 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace UWPHook
+{
+ public class AppEntry : INotifyPropertyChanged
+ {
+ private string _name;
+ ///
+ /// Gets or sets the name of the application
+ ///
+ public string Name
+ {
+ get { return _name; }
+ set { _name = value; }
+ }
+
+ private string _aumid;
+ ///
+ /// Gets or sets the aumid of the application
+ ///
+ public string Aumid
+ {
+ get { return _aumid; }
+ set { _aumid = value; }
+ }
+
+ private bool _isSelected;
+ ///
+ /// Gets or sets if the application is selected
+ ///
+ public bool IsSelected
+ {
+ get { return _isSelected; }
+ set
+ {
+ if (_isSelected == value) return;
+ _isSelected = value;
+ OnPropertyChanged();
+ }
+ }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+}
diff --git a/UWPHook/AppEntryModel.cs b/UWPHook/AppEntryModel.cs
new file mode 100644
index 0000000..a647b28
--- /dev/null
+++ b/UWPHook/AppEntryModel.cs
@@ -0,0 +1,20 @@
+using System.Collections.ObjectModel;
+
+namespace UWPHook
+{
+ public class AppEntryModel
+ {
+ public AppEntryModel()
+ {
+ this._entries = new ObservableCollection();
+ }
+
+ private ObservableCollection _entries;
+
+ public ObservableCollection Entries
+ {
+ get { return _entries; }
+ set { _entries = value; }
+ }
+ }
+}
diff --git a/UWPHook/AppManager.cs b/UWPHook/AppManager.cs
index e6b8cd5..61d80be 100644
--- a/UWPHook/AppManager.cs
+++ b/UWPHook/AppManager.cs
@@ -11,11 +11,11 @@ using System.Threading.Tasks;
namespace UWPHook
{
- class AppManager
+ static class AppManager
{
- private int id;
+ private static int id;
- public void LaunchUWPApp(string uri)
+ public static void LaunchUWPApp(string uri)
{
var mgr = new ApplicationActivationManager();
uint processId;
@@ -24,7 +24,7 @@ namespace UWPHook
id = (int)processId;
}
- public Boolean IsRunning()
+ public static Boolean IsRunning()
{
if (id == 0)
{
@@ -42,7 +42,7 @@ namespace UWPHook
return true;
}
- public List GetInstalledApps()
+ public static List GetInstalledApps()
{
List result = null;
var assembly = Assembly.GetExecutingAssembly();
diff --git a/UWPHook/GamesWindow.xaml b/UWPHook/GamesWindow.xaml
new file mode 100644
index 0000000..f1f6929
--- /dev/null
+++ b/UWPHook/GamesWindow.xaml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs
new file mode 100644
index 0000000..b47d926
--- /dev/null
+++ b/UWPHook/GamesWindow.xaml.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace UWPHook
+{
+ ///
+ /// Interaction logic for GamesWindow.xaml
+ ///
+ public partial class GamesWindow : Window
+ {
+ AppEntryModel Apps;
+
+ public GamesWindow()
+ {
+ InitializeComponent();
+ Apps = new AppEntryModel();
+ listGames.ItemsSource = Apps.Entries;
+ }
+
+ private void button_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void Button_Click_1(object sender, RoutedEventArgs e)
+ {
+ var installedApps = AppManager.GetInstalledApps();
+ }
+ }
+}
diff --git a/UWPHook/MainWindow.xaml.cs b/UWPHook/MainWindow.xaml.cs
index 5fadd4f..8f5bc67 100644
--- a/UWPHook/MainWindow.xaml.cs
+++ b/UWPHook/MainWindow.xaml.cs
@@ -1,8 +1,12 @@
-using System;
+using SharpSteam;
+using System;
+using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Windows;
+using VDFParser;
+using VDFParser.Models;
namespace UWPHook
{
@@ -23,13 +27,13 @@ namespace UWPHook
{
if (Environment.GetCommandLineArgs().Length > 1)
{
- manager = new AppManager();
+ //manager = new AppManager();
try
{
this.Hide();
Launch_Game(String.Join(" ", Environment.GetCommandLineArgs()));
- while (manager.IsRunning())
+ //while (manager.IsRunning())
{
Thread.Sleep(5000);
}
@@ -60,7 +64,7 @@ namespace UWPHook
{
try
{
- manager.LaunchUWPApp(game.game_path);
+ //manager.LaunchUWPApp(game.game_path);
}
catch (Exception ex)
{
@@ -79,7 +83,6 @@ namespace UWPHook
private void helpButton_Click(object sender, RoutedEventArgs e)
{
- manager.InstalledApps();
Process.Start("https://www.reddit.com/r/UWPHook/comments/53eaj9/welcome_to_uwphook_link_your_uwp_games_to_steam/");
}
diff --git a/UWPHook/UWPHook.csproj b/UWPHook/UWPHook.csproj
index 44b9532..e5b83cb 100644
--- a/UWPHook/UWPHook.csproj
+++ b/UWPHook/UWPHook.csproj
@@ -56,6 +56,14 @@
UWPHook.App
+
+ ..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll
+ True
+
+
+ ..\packages\MaterialDesignThemes.2.1.0.657\lib\net45\MaterialDesignThemes.Wpf.dll
+ True
+
..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
True
@@ -85,7 +93,16 @@
MSBuild:Compile
Designer
+
+
+
+ GamesWindow.xaml
+
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
@@ -155,6 +172,10 @@
+
+ {9543fb59-1eb6-4638-b24c-b12b9d4a15fc}
+ VDFParser
+
{d0a686fb-b373-4fbc-a0dd-c3417276a816}
SharpSteam
diff --git a/UWPHook/packages.config b/UWPHook/packages.config
index 96059ca..661cf2c 100644
--- a/UWPHook/packages.config
+++ b/UWPHook/packages.config
@@ -1,5 +1,7 @@
+
+
\ No newline at end of file