aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 01:49:06 +0100
committerGitHub <noreply@github.com>2024-12-20 01:49:06 +0100
commita8ba1b376ff16a69c52f223341a2ed39fd59a8ea (patch)
tree2a8c0535a22264f4f3d37d684231d2ac147ac199 /src/cli.js
parent7403086ce7d2a9d3b68801dc4c2135f5766b8d60 (diff)
parentbd4391f737ee4405fc390ab47c4124fe28df48d7 (diff)
downloadViper-a8ba1b376ff16a69c52f223341a2ed39fd59a8ea.tar.gz
Viper-a8ba1b376ff16a69c52f223341a2ed39fd59a8ea.zip
Merge branch 'main' into gamepad-supportgamepad-support
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")}