[feat] inject env vars to launch options with steam format %command%

This commit is contained in:
silentrald
2025-01-21 01:36:38 +08:00
parent 5d4b79c041
commit c6ff848bfa
4 changed files with 33 additions and 3 deletions
+6 -1
View File
@@ -61,7 +61,12 @@ export class BSLauncherService {
this.notificationService.notifySuccess({title: `notifications.bs-launch.success.titles.${event.type}`, desc: `notifications.bs-launch.success.msg.${event.type}`});
},
error: (err: CustomError) => {
if(!err?.code || !Object.values(BSLaunchError).includes(err.code as BSLaunchError)){
if (err?.code?.startsWith("generic.")) {
this.notificationService.notifyError({
title: "notifications.bs-launch.errors.titles.UNKNOWN_ERROR",
desc: err.code,
});
} else if(!err?.code || !Object.values(BSLaunchError).includes(err.code as BSLaunchError)){
this.notificationService.notifyError({title: "notifications.bs-launch.errors.titles.UNKNOWN_ERROR", desc: "notifications.bs-launch.errors.msg.UNKNOWN_ERROR"});
} else {
this.notificationService.notifyError({title: `notifications.bs-launch.errors.titles.${err.code}`, desc: `notifications.bs-launch.errors.msg.${err.code}`, duration: sToMs(9)})