diff options
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | src/utils.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json index 1de4f77..b852d36 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "scripts": { "start": "npx electron src/index.js", + "debug": "npx electron src/index.js --debug", "build": "npx electron-builder --win nsis --linux appimage" }, "repository": { 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)}) } |