aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)})
}