Merge pull request #789 from silentrald/bugfix/null-folder-version

[bugfix] fixed issue with null folderVersion
This commit is contained in:
MathieuG-P
2025-02-08 16:15:23 +01:00
committed by GitHub
@@ -106,10 +106,10 @@ export class BSLocalVersionService {
const versionFilePath = path.join(bsPath, 'Beat Saber_Data', 'globalgamemanagers');
const folderVersion = await this.getVersionFromGlobalGameManagerFile(versionFilePath);
folderVersion.path = bsPath;
if(!folderVersion){ return null; }
folderVersion.path = bsPath;
if(options?.steam || options?.oculus){
return {...folderVersion, ...options};
}