(modId)
| 636 | } |
| 637 | |
| 638 | async enableMod(modId) { |
| 639 | const mods = await this.getMods(); |
| 640 | const mod = mods[modId]; |
| 641 | |
| 642 | console.warn(`[ZenMods]: Enabling mod ${mod.name}`); |
| 643 | |
| 644 | mod.enabled = true; |
| 645 | |
| 646 | await IOUtils.writeJSON(this.modsDataFile, mods); |
| 647 | } |
| 648 | |
| 649 | async disableMod(modId) { |
| 650 | const mods = await this.getMods(); |
no test coverage detected