aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-28 13:46:56 +0100
committerAlystrasz <contact@remyraes.com>2021-12-28 13:46:56 +0100
commitbe7c81faf3574ec2e8df43c7c4e03df874d8cec1 (patch)
tree7cc6724ecdf12c2d7479ccc53697754d054b7e55 /src/utils.js
parentd125375e85178169cd3fb644a0e9e76ecef48911 (diff)
parentb2bdedddad5001db625478f91ff5d8e86b79f87d (diff)
downloadViper-be7c81faf3574ec2e8df43c7c4e03df874d8cec1.tar.gz
Viper-be7c81faf3574ec2e8df43c7c4e03df874d8cec1.zip
Merge branch 'main' into feat/icon
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js
index 6b6fbfa..85cc26e 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -33,8 +33,10 @@ function setpath(win) {
settings.gamepath = cli.param("setpath");
} else {
dialog.showOpenDialog({properties: ["openDirectory"]}).then(res => {
- win.webContents.send("newpath", res.filePaths[0]);
settings.gamepath = res.filePaths[0];
+ settings.zip = path.join(settings.gamepath + "/northstar.zip");
+
+ win.webContents.send("newpath", settings.gamepath);
}).catch(err => {console.error(err)})
}