fix(linux): skip oculus library detection

Since linux doesn't have a registry, trying to read from it will fail.
With this fix and my other pr #264 basic linux functionallity works.
This commit is contained in:
RedlineTriad
2023-06-29 22:12:36 +02:00
parent f47a1de05e
commit 9c9e0861dd
+6
View File
@@ -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;
}