aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
committer0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
commit9d438e3f8f543a93a916f0573c0ea24dbaf4a395 (patch)
tree58b5544ac81f13f070462458342a78239b38ec04 /src/index.js
parent6ac8259ec96db1ac0e770dd42b4f21c2eabd5c63 (diff)
downloadViper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.tar.gz
Viper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.zip
this might add launch options? maybe?
I haven't tested this on Windows... And I will in a bit...
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 9fe7610..6095803 100644
--- a/src/index.js
+++ b/src/index.js
@@ -27,8 +27,11 @@ function start() {
ipcMain.on("setpath", (event) => {utils.setpath(win)})
}
-ipcMain.on("setpathcli", (event) => {utils.setpath()})
+ipcMain.on("launch", (event) => {utils.launch()})
+ipcMain.on("launchVanilla", (event) => {utils.launch("vanilla")})
+
ipcMain.on("update", (event) => {utils.update()})
+ipcMain.on("setpathcli", (event) => {utils.setpath()})
process.chdir(app.getPath("appData"));