mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge pull request #657 from LiamillionSS/bugfix/527
[bugfix/527] Prevents oculus version from launching if the original oculus version is not present
(cherry picked from commit e1f421831b)
This commit is contained in:
@@ -127,6 +127,11 @@ export class OculusLauncherService extends AbstractLauncherService implements St
|
||||
|
||||
const prepareDowngradedVersion: () => Promise<string> = async () => {
|
||||
|
||||
const originalVersionPath = await prepareOriginalVersion().catch(() => null);
|
||||
if (!originalVersionPath) {
|
||||
throw CustomError.fromError(new Error("Original Oculus Beat Saber not installed"), BSLaunchError.ORIGINAL_OCULUS_NOT_INSTALLED);
|
||||
}
|
||||
|
||||
const oculusLib = await lastValueFrom(this.oculusLib$.pipe(take(1), timeout(sToMs(30)), catchError(() => of(null))));
|
||||
|
||||
if(!oculusLib){
|
||||
|
||||
@@ -15,6 +15,7 @@ export enum BSLaunchError{
|
||||
BS_EXIT_ERROR = "EXIT",
|
||||
OCULUS_LIB_NOT_FOUND = "OCULUS_LIB_NOT_FOUND",
|
||||
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
||||
ORIGINAL_OCULUS_NOT_INSTALLED = "ORIGINAL_OCULUS_NOT_INSTALLED"
|
||||
}
|
||||
|
||||
export enum BSLaunchEvent{
|
||||
|
||||
Reference in New Issue
Block a user