aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-23 18:06:41 +0200
committer0neGal <mail@0negal.com>2024-06-23 18:06:41 +0200
commita49b9114f92b141dfae76199be2ba81252df0e41 (patch)
tree4772f7ec845d8f8c7582f12e261a422bfe570e41
parent6c2df3103bca1b782101601b088f550f2662ee99 (diff)
downloadViper-a49b9114f92b141dfae76199be2ba81252df0e41.tar.gz
Viper-a49b9114f92b141dfae76199be2ba81252df0e41.zip
make sure "libraryfolders" exists in VDF files
-rw-r--r--src/modules/findgame.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/findgame.js b/src/modules/findgame.js
index f8d0126..d53397b 100644
--- a/src/modules/findgame.js
+++ b/src/modules/findgame.js
@@ -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;
}