aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js
index 511aadb..161092a 100644
--- a/src/index.js
+++ b/src/index.js
@@ -83,10 +83,18 @@ ipcMain.on("versioncli", () => {
ipcMain.on("getmods", (event) => {
let mods = utils.mods.list();
- if (mods.length > 0) {
- console.log(`${utils.lang("general.mods.installed")} ${mods.length}`)
- for (let i = 0; i < mods.length; i++) {
- console.log(` ${mods[i].Name} ${mods[i].Version}`)
+ if (mods.all.length > 0) {
+ console.log(`${utils.lang("general.mods.installed")} ${mods.all.length}`)
+ console.log(`${utils.lang("general.mods.enabled")} ${mods.enabled.length}`)
+ for (let i = 0; i < mods.enabled.length; i++) {
+ console.log(` ${mods.enabled[i].Name} ${mods.enabled[i].Version}`)
+ }
+
+ if (mods.disabled.length > 0) {
+ console.log(`${utils.lang("general.mods.disabled")} ${mods.disabled.length}`)
+ for (let i = 0; i < mods.disabled.length; i++) {
+ console.log(` ${mods.disabled[i].Name} ${mods.disabled[i].Version}`)
+ }
}
cli.exit(0);
} else {