aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
committer0neGal <mail@0negal.com>2021-12-27 02:13:32 +0100
commit9d438e3f8f543a93a916f0573c0ea24dbaf4a395 (patch)
tree58b5544ac81f13f070462458342a78239b38ec04 /src/cli.js
parent6ac8259ec96db1ac0e770dd42b4f21c2eabd5c63 (diff)
downloadViper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.tar.gz
Viper-9d438e3f8f543a93a916f0573c0ea24dbaf4a395.zip
this might add launch options? maybe?
I haven't tested this on Windows... And I will in a bit...
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 = {