Skip to content

Commit

Permalink
fixed gamepathlost errors on first launch
Browse files Browse the repository at this point in the history
Because viper.json doesn't exist it also means settings.gamepath is
null, which triggers the gamepathlost message.
  • Loading branch information
0neGal committed Apr 17, 2022
1 parent 27126d0 commit 9ae7cc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9ae7cc3

Please sign in to comment.