Move AUMID to LaunchOptions

Also add empty Devkit/DevkitGameID
pull/44/head
FlaminSarge 4 years ago
parent dd8ec6df0c
commit cd6c416e6b

@ -156,22 +156,26 @@ namespace UWPHook
if (shortcuts != null) 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) foreach (var app in selected_apps)
{ {
VDFEntry newApp = new VDFEntry() VDFEntry newApp = new VDFEntry()
{ {
AppName = app.Name, AppName = app.Name,
Exe = @"""" + System.Reflection.Assembly.GetExecutingAssembly().Location + @""" " + app.Aumid, Exe = exePath,
StartDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), StartDir = exeDir,
LaunchOptions = app.Aumid,
AllowDesktopConfig = 1, AllowDesktopConfig = 1,
AllowOverlay = 1,
Icon = app.Icon, Icon = app.Icon,
Index = shortcuts.Length, Index = shortcuts.Length,
IsHidden = 0, IsHidden = 0,
OpenVR = 0, OpenVR = 0,
ShortcutPath = "", ShortcutPath = "",
Tags = new string[0], Tags = new string[0],
LaunchOptions = "", Devkit = 0,
AllowOverlay = 1, DevkitGameID = "",
LastPlayTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds(), LastPlayTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
}; };

Loading…
Cancel
Save