Skip to content

Commit

Permalink
filter out weird 0 userdata directories
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed May 1, 2023
1 parent bb40cae commit e6af918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/helpers/steam/get-available-logins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getAvailableLogins(steamDirectory: string) {
let extraAccounts: userAccountData[] = [];
for (let i = 0; i < files.length; i++) {
const userId = files[i].split(path.sep).slice(-1)[0];
if(!userAccounts.map(account => account.accountID).includes(userId)) {
if(!userAccounts.map(account => account.accountID).includes(userId) && userId!=='0') {
extraAccounts.push({ steamID64: 'unavailable', accountID: userId, name: userId });
}
}
Expand Down

0 comments on commit e6af918

Please sign in to comment.