diff options
author | 0neGal <mail@0negal.com> | 2022-02-09 00:01:57 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-02-09 00:01:57 +0100 |
commit | cf53a50c9a95256ce2c7261cbd32095ff95466c1 (patch) | |
tree | 35090d979dce58d47cddf5338c7e6b2e01223638 /src/utils.js | |
parent | 288c495b78b167ddb680448d03a66df54582416e (diff) | |
download | Viper-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/utils.js')
-rw-r--r-- | src/utils.js | 2 |
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 |