[feature] advancement on steam shortcut

This commit is contained in:
MathieuG-P
2025-01-05 21:33:23 +01:00
parent cab1fb93de
commit 774c3a2954
9 changed files with 310 additions and 44 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export interface IpcChannelMapping {
"bs-installer.set-install-path": { request: { path: string, move: boolean }, response: string};
/* ** bs-launcher-ipcs ** */
"create-launch-shortcut": { request: LaunchOption, response: boolean };
"create-launch-shortcut": { request: { options: LaunchOption, steamShortcut?: boolean }, response: boolean };
"bs-launch.need-start-as-admin": { request: void, response: boolean };
"bs-launch.launch": { request: LaunchOption, response: BSLaunchEventData };
"bs-launch.restore-steamvr": { request: void, response: void };
+28
View File
@@ -0,0 +1,28 @@
export enum SteamShortcutKey {
AppName = "AppName",
Exe = "Exe",
StartDir = "StartDir",
appid = "appid",
icon = "icon",
ShortcutPath = "ShortcutPath",
LaunchOptions = "LaunchOptions",
IsHidden = "IsHidden",
AllowDesktopConfig = "AllowDesktopConfig",
OpenVR = "OpenVR",
Devkit = "Devkit",
DevkitGameID = "DevkitGameID",
LastPlayTime = "LastPlayTime",
FlatpakAppID = "FlatpakAppID",
tags = "tags"
}
type BaseShortcut = {
[K in SteamShortcutKey]: K extends "tags" ? string[] : string
};
export interface SteamShortcut extends Partial<BaseShortcut> {
// Mandatory fields
AppName: string;
Exe: string;
StartDir: string;
}