From cd6c416e6b6998517e44c00e5393444a0fc701ab Mon Sep 17 00:00:00 2001 From: FlaminSarge Date: Sat, 30 May 2020 16:04:56 -0700 Subject: [PATCH] Move AUMID to LaunchOptions Also add empty Devkit/DevkitGameID --- UWPHook/GamesWindow.xaml.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 1d41e4d..4cd0e14 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -156,22 +156,26 @@ namespace UWPHook if (shortcuts != null) { + var exePath = @"""" + System.Reflection.Assembly.GetExecutingAssembly().Location + @""""; + var exeDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); foreach (var app in selected_apps) { VDFEntry newApp = new VDFEntry() { AppName = app.Name, - Exe = @"""" + System.Reflection.Assembly.GetExecutingAssembly().Location + @""" " + app.Aumid, - StartDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), + Exe = exePath, + StartDir = exeDir, + LaunchOptions = app.Aumid, AllowDesktopConfig = 1, + AllowOverlay = 1, Icon = app.Icon, Index = shortcuts.Length, IsHidden = 0, OpenVR = 0, ShortcutPath = "", Tags = new string[0], - LaunchOptions = "", - AllowOverlay = 1, + Devkit = 0, + DevkitGameID = "", LastPlayTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds(), };