aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-09 00:01:57 +0100
committer0neGal <mail@0negal.com>2022-02-09 00:01:57 +0100
commitcf53a50c9a95256ce2c7261cbd32095ff95466c1 (patch)
tree35090d979dce58d47cddf5338c7e6b2e01223638 /src
parent288c495b78b167ddb680448d03a66df54582416e (diff)
downloadViper-cf53a50c9a95256ce2c7261cbd32095ff95466c1.tar.gz
Viper-cf53a50c9a95256ce2c7261cbd32095ff95466c1.zip
mods installed to the wrong folder on path change
The modpath variable is now refreshed when you change the game path. Which stops the problem altogether.
Diffstat (limited to 'src')
-rw-r--r--src/utils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
index 7a1e333..49e87eb 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -123,6 +123,8 @@ async function setpath(win, forcedialog) {
saveSettings();
win.webContents.send("newpath", settings.gamepath);
ipcMain.emit("newpath", null, settings.gamepath);
+
+ modpath = path.join(settings.gamepath, "R2Northstar/mods");
}
if (! win) { // CLI