diff options
author | 0neGal <mail@0negal.com> | 2024-06-14 23:52:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 23:52:05 +0200 |
commit | 5f3259f5b62609e57468592dfaf7b1bd9b6f0bad (patch) | |
tree | 17b825f2f2ae3d3c855c016950a1f12f9ca211ec | |
parent | 138464759f45a463104bfc6ca92a118e7a74101c (diff) | |
parent | 384977de2f89cdd26e15adc1f274bf46b3c7a03e (diff) | |
download | Viper-5f3259f5b62609e57468592dfaf7b1bd9b6f0bad.tar.gz Viper-5f3259f5b62609e57468592dfaf7b1bd9b6f0bad.zip |
Merge branch 'main' into gamepad-support
-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"]); |