aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.js')
-rw-r--r--src/cli.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cli.js b/src/cli.js
index b550a8f..ea54235 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -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 = {