From a8138ebac12088659e7c4a5015b4fb636cfc879f Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sun, 4 Aug 2024 14:07:43 +0200 Subject: correct ipc event names in cli handler --- src/cli.js | 6 +++--- 1 file 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")} -- cgit v1.2.3