aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-11-23 00:49:58 +0100
committer0neGal <mail@0negal.com>2022-11-23 00:49:58 +0100
commita12c73e95f7de4167d4e20f77d5e942f1e12d179 (patch)
treef00e9b4b70617506c911840d258dbdfc7b286851 /src/index.js
parentacce3855ab1f99d5e1245696df0123240f7b9034 (diff)
downloadViper-a12c73e95f7de4167d4e20f77d5e942f1e12d179.tar.gz
Viper-a12c73e95f7de4167d4e20f77d5e942f1e12d179.zip
actually fix duplicate mods
If a mod has multiple mod folders inside it, however all with the same name, they'll be merged together, this now fixes that, by adding "(dupe)" to the end of it, along with displaying an error, however it will install successfully. This also happens to add some duplicate toast protection, however this should be reworked, but I am not bothered to deal with it right now, and I instead will be putting this on future me.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 30e36f5..02a7a60 100644
--- a/src/index.js
+++ b/src/index.js
@@ -67,6 +67,7 @@ function start() {
ipcMain.on("win-alert", (event, ...args) => {send("alert", ...args)});
// mod states
+ ipcMain.on("duped-mod", (event, modname) => {send("duped-mod", modname)});
ipcMain.on("failed-mod", (event, modname) => {send("failed-mod", modname)});
ipcMain.on("removed-mod", (event, modname) => {send("removed-mod", modname)});
ipcMain.on("gui-getmods", (event, ...args) => {send("mods", utils.mods.list())});