aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js
index 6a45bd7..89bcf92 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -787,7 +787,11 @@ setInterval(() => {
if (gamepathExists()) {
ipcMain.emit("guigetmods");
} else {
- ipcMain.emit("gamepathlost");
+ if (fs.existsSync("viper.json")) {
+ if (settings.gamepath != "") {
+ ipcMain.emit("gamepathlost");
+ }
+ }
}
}, 1500)