Skip to content

Commit

Permalink
make sure "libraryfolders" exists in VDF files
Browse files Browse the repository at this point in the history
  • Loading branch information
0neGal committed Jun 23, 2024
1 parent 6c2df31 commit a49b911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/findgame.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = async () => {
data = vdf.parse(data); // parse read_data

// verify VDF was parsed correctly
if (! data || typeof data !== "object") {
if (! data || typeof data !== "object" || ! data.libraryfolders) {
return;
}

Expand Down

0 comments on commit a49b911

Please sign in to comment.