aboutsummaryrefslogtreecommitdiff
path: root/src/extras/findgame.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-06-29 23:29:02 +0200
committerGitHub <noreply@github.com>2022-06-29 23:29:02 +0200
commitcbca61d836ee573a469f6339c22c2891cef9428c (patch)
tree6175a5f57a32a2f3bc90b4d4247444f3dd94ed5f /src/extras/findgame.js
parent99209092b6ad1079202208833e542201f1197e2d (diff)
parent0c7f6f438ca530a192577907d3af9a7d95949ef3 (diff)
downloadViper-cbca61d836ee573a469f6339c22c2891cef9428c.tar.gz
Viper-cbca61d836ee573a469f6339c22c2891cef9428c.zip
Merge branch 'main' into add-badges
Diffstat (limited to 'src/extras/findgame.js')
-rw-r--r--src/extras/findgame.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/extras/findgame.js b/src/extras/findgame.js
index 3beca23..615c5b4 100644
--- a/src/extras/findgame.js
+++ b/src/extras/findgame.js
@@ -38,13 +38,13 @@ module.exports = async () => {
// `.length - 1` This is because the last value is `contentstatsid`
for (let i = 0; i < values.length; i++) {
- let data_array = Object.values(values[i])
+ let data_array = Object.values(values[i]);
if (fs.existsSync(data_array[0] + "/steamapps/common/Titanfall2/Titanfall2.exe")) {
- console.log("Found game in:", data_array[0])
+ console.log("Found game in:", data_array[0]);
return data_array[0] + "/steamapps/common/Titanfall2";
} else {
- console.log("Game not in:", data_array[0])
+ console.log("Game not in:", data_array[0]);
}
}
}
@@ -69,10 +69,10 @@ module.exports = async () => {
if (folders.length > 0) {
for (let i = 0; i < folders.length; i++) {
if (! fs.existsSync(folders[i])) {continue}
- console.log("Searching VDF file at:", folders[i])
+ console.log("Searching VDF file at:", folders[i]);
- let data = fs.readFileSync(folders[i])
- let read_vdf = readvdf(data.toString())
+ let data = fs.readFileSync(folders[i]);
+ let read_vdf = readvdf(data.toString());
if (read_vdf) {return read_vdf}
}
}