diff options
author | 0neGal <mail@0negal.com> | 2024-12-20 01:49:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 01:49:06 +0100 |
commit | a8ba1b376ff16a69c52f223341a2ed39fd59a8ea (patch) | |
tree | 2a8c0535a22264f4f3d37d684231d2ac147ac199 /src/cli.js | |
parent | 7403086ce7d2a9d3b68801dc4c2135f5766b8d60 (diff) | |
parent | bd4391f737ee4405fc390ab47c4124fe28df48d7 (diff) | |
download | Viper-a8ba1b376ff16a69c52f223341a2ed39fd59a8ea.tar.gz Viper-a8ba1b376ff16a69c52f223341a2ed39fd59a8ea.zip |
Merge branch 'main' into gamepad-supportgamepad-support
Diffstat (limited to 'src/cli.js')
-rw-r--r-- | src/cli.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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")} |