aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-30 22:05:54 +0100
committer0neGal <mail@0negal.com>2021-12-30 22:05:54 +0100
commitee885beeed57d95ffb58922cfc6b826b7ebf9a31 (patch)
tree6cc217060683a950561b3e5da828d52f7b60c63a /src/cli.js
parent823d34f6f41c65c7b1cb8e55bd429b9efc4f3878 (diff)
downloadViper-ee885beeed57d95ffb58922cfc6b826b7ebf9a31.tar.gz
Viper-ee885beeed57d95ffb58922cfc6b826b7ebf9a31.zip
first-ish draft of the mod UI and utils
Diffstat (limited to 'src/cli.js')
-rw-r--r--src/cli.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.js b/src/cli.js
index 6696d36..f1962e7 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -10,6 +10,7 @@ const lang = require("./lang");
function hasArgs() {
if (cli.hasSwitch("cli") ||
cli.hasSwitch("help") ||
+ cli.hasSwitch("mods") ||
cli.hasSwitch("update") ||
cli.hasSwitch("launch") ||
cli.hasSwitch("setpath") ||
@@ -65,6 +66,8 @@ async function init() {
break;
}
}
+
+ if (cli.hasSwitch("mods")) {ipcMain.emit("getmods")}
}
module.exports = {