diff options
Diffstat (limited to 'src/cli.js')
-rw-r--r-- | src/cli.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -10,6 +10,7 @@ function hasArgs() { if (cli.hasSwitch("cli") || cli.hasSwitch("help") || cli.hasSwitch("update") || + cli.hasSwitch("launch") || cli.hasSwitch("setpath") || cli.hasSwitch("gamepath")) { return true; @@ -44,6 +45,17 @@ async function init() { console.error("error: No argumment provided for --setpath"); } } + + if (cli.hasSwitch("launch")) { + switch(cli.getSwitchValue("launch")) { + case "vanilla": + ipcMain.emit("launchVanilla"); + break; + default: + ipcMain.emit("launch"); + break; + } + } } module.exports = { |