diff --git a/package.json b/package.json index 5da573eb..3186535f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydralauncher", - "version": "3.6.7", + "version": "3.6.8", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas", diff --git a/src/main/services/steam.ts b/src/main/services/steam.ts index cdc16860..bc867111 100644 --- a/src/main/services/steam.ts +++ b/src/main/services/steam.ts @@ -82,17 +82,19 @@ export const getSteamAppDetails = async ( }; export const getSteamUsersIds = async () => { - const userDataPath = await getSteamLocation().catch(() => null); + const steamLocation = await getSteamLocation().catch(() => null); - if (!userDataPath) { + if (!steamLocation) { return []; } + const userDataPath = path.join(steamLocation, "userdata"); + if (!fs.existsSync(userDataPath)) { return []; } - const userIds = fs.readdirSync(path.join(userDataPath, "userdata"), { + const userIds = fs.readdirSync(userDataPath, { withFileTypes: true, });