aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-08-04 16:36:21 +0200
committerGitHub <noreply@github.com>2024-08-04 16:36:21 +0200
commit09b7d16086595b1ba039ecf1c1b904a6e0948d12 (patch)
treedac8aca75533d34a8d6b4755395c9b59a01e8036
parent5d6ab8e481fe6df98f0bb345589d0b1ccb291f88 (diff)
parenta8138ebac12088659e7c4a5015b4fb636cfc879f (diff)
downloadViper-09b7d16086595b1ba039ecf1c1b904a6e0948d12.tar.gz
Viper-09b7d16086595b1ba039ecf1c1b904a6e0948d12.zip
Merge pull request #245 from Jan200101/PR/fix-cli
fix: correct cli ipc event names
-rw-r--r--src/cli.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.js b/src/cli.js
index c3d957e..c9fe05a 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -115,9 +115,9 @@ async function init() {
}
// Mod related args, --installmod, --removemod, --togglemod
- if (cli.hasSwitch("installmod") && gamepathExists()) {ipcMain.emit("installmod")}
- if (cli.hasSwitch("removemod") && gamepathExists()) {ipcMain.emit("removemod", "", cli.getSwitchValue("removemod"))}
- if (cli.hasSwitch("togglemod") && gamepathExists()) {ipcMain.emit("togglemod", "", cli.getSwitchValue("togglemod"))}
+ if (cli.hasSwitch("installmod") && gamepathExists()) {ipcMain.emit("install-mod")}
+ if (cli.hasSwitch("removemod") && gamepathExists()) {ipcMain.emit("remove-mod", "", cli.getSwitchValue("removemod"))}
+ if (cli.hasSwitch("togglemod") && gamepathExists()) {ipcMain.emit("toggle-mod", "", cli.getSwitchValue("togglemod"))}
// Prints out the list of mods
if (cli.hasSwitch("mods") && gamepathExists()) {ipcMain.emit("getmods")}