Skip to content

Commit

Permalink
Merge pull request #245 from Jan200101/PR/fix-cli
Browse files Browse the repository at this point in the history
fix: correct cli ipc event names
  • Loading branch information
0neGal authored Aug 4, 2024
2 parents 5d6ab8e + a8138eb commit 09b7d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
Expand Down

0 comments on commit 09b7d16

Please sign in to comment.