diff options
author | Alystrasz <contact@remyraes.com> | 2022-01-10 20:17:43 +0100 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-01-10 20:17:43 +0100 |
commit | 3d96636bb0bbdc271d49999f7a10216690a19157 (patch) | |
tree | 54fd722c712bc0f9de20164f424b491f86eb1177 | |
parent | edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d (diff) | |
download | Viper-3d96636bb0bbdc271d49999f7a10216690a19157.tar.gz Viper-3d96636bb0bbdc271d49999f7a10216690a19157.zip |
[fix] not running auto-updates if gamepath is not set
-rw-r--r-- | src/utils.js | 3 |
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(); |