mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[feature] advancement on steam shortcut
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user