mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge pull request #266 from RedlineTriad/linux-fix-oculus-registry-error
fix(linux): skip oculus library detection
This commit is contained in:
@@ -2,6 +2,7 @@ import { UtilsService } from "./utils.service";
|
||||
import regedit from "regedit";
|
||||
import path from "path";
|
||||
import { pathExist } from "../helpers/fs.helpers";
|
||||
import log from "electron-log";
|
||||
|
||||
export class OculusService {
|
||||
private static instance: OculusService;
|
||||
@@ -26,6 +27,11 @@ export class OculusService {
|
||||
}
|
||||
|
||||
public async getOculusLibsPath(): Promise<string[]> {
|
||||
if (process.platform !== "win32") {
|
||||
log.info("Oculus library auto-detection not supported on non-windows platforms");
|
||||
return null;
|
||||
}
|
||||
|
||||
if (this.oculusPaths) {
|
||||
return this.oculusPaths;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user