[feature] can now launch beat saber from shortcut

This commit is contained in:
MathieuG-P
2023-07-14 14:18:23 +02:00
parent 8a7ffdc264
commit 2f3b5bf610
32 changed files with 2119 additions and 347 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
export { LaunchOption } from "./launch-option.interface"
export { LaunchResult } from "./launch-result.interface"
export { BSLaunchErrorEvent, BSLaunchEvent, BSLaunchErrorType, BSLaunchEventType } from "./launch-event.model"
export { BSLaunchError, BSLaunchErrorData, BSLaunchEvent, BSLaunchEventData, BSLaunchEventType, BSLaunchWarning } from "./launch-event.model"
@@ -1,14 +1,14 @@
export interface BSLaunchEvent{
export interface BSLaunchEventData{
type: BSLaunchEventType;
data?: unknown;
}
export interface BSLaunchErrorEvent{
type: BSLaunchErrorType;
export interface BSLaunchErrorData{
type: BSLaunchError;
data?: unknown;
}
export enum BSLaunchErrorType{
export enum BSLaunchError{
BS_NOT_FOUND = "EXE_NOT_FINDED",
BS_ALREADY_RUNNING = "BS_ALREADY_RUNNING",
OCULUS_NOT_RUNNING = "OCULUS_NOT_RUNNING",
@@ -16,7 +16,14 @@ export enum BSLaunchErrorType{
UNKNOWN_ERROR = "UNKNOWN_ERROR",
}
export enum BSLaunchEventType{
export enum BSLaunchEvent{
STEAM_LAUNCHING = "STEAM_LAUNCHING",
STEAM_LAUNCHED = "STEAM_LAUNCHED",
BS_LAUNCHING = "BS_LAUNCHING",
}
}
export enum BSLaunchWarning{
UNABLE_TO_LAUNCH_STEAM = "UNABLE_TO_LAUNCH_STEAM",
}
export type BSLaunchEventType = BSLaunchEvent | BSLaunchWarning;
@@ -5,5 +5,6 @@ export interface LaunchOption {
oculus: boolean,
desktop: boolean,
debug: boolean,
additionalArgs?: string[]
additionalArgs?: string[],
skipAlreadyRunning?: boolean
}
@@ -1 +1 @@
export type AppWindow = "index.html" | "launcher.html" | "oneclick-download-map.html" | "oneclick-download-playlist.html" | "oneclick-download-model.html";
export type AppWindow = "index.html" | "launcher.html" | "oneclick-download-map.html" | "oneclick-download-playlist.html" | "oneclick-download-model.html" | "shortcut-launch.html";