diff options
-rw-r--r-- | src/modules/findgame.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/findgame.js b/src/modules/findgame.js index 505595f..f8d0126 100644 --- a/src/modules/findgame.js +++ b/src/modules/findgame.js @@ -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"]); |