aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-01-10 20:17:43 +0100
committerAlystrasz <contact@remyraes.com>2022-01-10 20:17:43 +0100
commit3d96636bb0bbdc271d49999f7a10216690a19157 (patch)
tree54fd722c712bc0f9de20164f424b491f86eb1177
parentedbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d (diff)
downloadViper-3d96636bb0bbdc271d49999f7a10216690a19157.tar.gz
Viper-3d96636bb0bbdc271d49999f7a10216690a19157.zip
[fix] not running auto-updates if gamepath is not set
-rw-r--r--src/utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js
index 72c0ba2..faa0f13 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -36,7 +36,8 @@ if (fs.existsSync("viper.json")) {
northstar_auto_updates: {
- if (!settings.autoupdate || !fs.existsSync("viper.json")) break northstar_auto_updates;
+ if (!settings.autoupdate || !fs.existsSync("viper.json") || settings.gamepath.length === 0)
+ break northstar_auto_updates;
async function _checkForUpdates() {
const localVersion = getNSVersion();