mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Fix beatsaber no longer starts when using oculus client (#1011)
This commit is contained in:
@@ -48,7 +48,9 @@ export class OculusLauncherService extends AbstractLauncherService implements St
|
||||
}
|
||||
|
||||
// Make sure Oculus is running
|
||||
await this.oculus.startOculus().catch(err => log.error("Error while starting Oculus", err));
|
||||
await this.oculus.startOculus().catch(err => log.error("Error while starting Oculus", err)).catch(err => {
|
||||
log.warn("Unable to start Oculus client. Force launch.", err);
|
||||
});
|
||||
|
||||
let env: Record<string, string> = {
|
||||
...process.env,
|
||||
@@ -57,7 +59,7 @@ export class OculusLauncherService extends AbstractLauncherService implements St
|
||||
env: parsedEnv,
|
||||
cmdlet, args,
|
||||
} = parseLaunchOptions(launchOptions.command, {
|
||||
commandReplacement: exePath,
|
||||
commandReplacement: `"${exePath}"`,
|
||||
});
|
||||
env = this.mergeEnvVariables(env, parsedEnv);
|
||||
|
||||
|
||||
@@ -105,8 +105,12 @@ export class OculusService {
|
||||
return null;
|
||||
}
|
||||
|
||||
public oculusRunning(): Promise<boolean> {
|
||||
return isProcessRunning("OculusClient");
|
||||
public async oculusRunning(): Promise<boolean> {
|
||||
if (await isProcessRunning("OculusClient")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return isProcessRunning("Client"); // new name of oculus client
|
||||
}
|
||||
|
||||
public async startOculus(): Promise<void>{
|
||||
|
||||
Reference in New Issue
Block a user