aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 161092a..7ef9321 100644
--- a/src/index.js
+++ b/src/index.js
@@ -57,6 +57,14 @@ function start() {
ipcMain.on("updatenow", () => {
autoUpdater.quitAndInstall();
})
+
+ ipcMain.on("removemod", (event, mod) => {utils.mods.remove(mod)})
+ ipcMain.on("togglemod", (event, mod) => {utils.mods.toggle(mod)})
+ ipcMain.on("installmod", () => {
+ dialog.showOpenDialog({properties: ["openDirectory"]}).then(res => {
+ utils.mods.install(res.filePaths[0]);
+ }).catch(err => {console.error(err)})
+ })
}
ipcMain.on("launch", (event) => {utils.launch()})