aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 18:24:40 +0100
committerGitHub <noreply@github.com>2024-12-20 18:24:40 +0100
commit4db50da2c75968f8c5ca6804e332da8de401a3e0 (patch)
treedef65ef730f3ef794de06f46a003aa2685997cb0 /src/cli.js
parent558ef98614b8ad34ba4fb35a8f0b6fe94211f938 (diff)
parentfab59ba8b8b1c567ee158b9681c5b373fb7303e4 (diff)
downloadViper-4db50da2c75968f8c5ca6804e332da8de401a3e0.tar.gz
Viper-4db50da2c75968f8c5ca6804e332da8de401a3e0.zip
Merge branch 'main' into PR/onLine-event
Diffstat (limited to 'src/cli.js')
-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")}