Skip to content

Commit

Permalink
verify VDF files gets parsed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
0neGal committed Jun 14, 2024
1 parent 04b0e9f commit 384977d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/findgame.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ module.exports = async () => {
function readvdf(data) {
data = vdf.parse(data); // parse read_data

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

// list of folders where the game could possibly be installed at
let values = Object.values(data["libraryfolders"]);

Expand Down

0 comments on commit 384977d

Please sign in to comment.