aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-03 01:20:50 +0100
committer0neGal <mail@0negal.com>2022-01-03 01:20:50 +0100
commit42e6f3b358bf4d569a0849f3d5c99bb58bf432ba (patch)
treef4495accf8e57b904dd8e4c0afca3da409f22be9 /src/app
parentc356beee2be1840aa257cb335272026d846f02d1 (diff)
downloadViper-42e6f3b358bf4d569a0849f3d5c99bb58bf432ba.tar.gz
Viper-42e6f3b358bf4d569a0849f3d5c99bb58bf432ba.zip
installing mods from folders got a lil easier
If a mod decided to put their actual mod files inside a folder inside a folder it'll search sub folders to try and find them and usually it's able to install it. Meaning, if instead of the mod being structured as such: mod/ mod.json other files ... It is structured as such: folder/ mod/ mod.json other files ... This will be very useful for zip files... As some people tend to archive a folder and not make an archive with the files in it. Leading to the above structure...
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 897c82c..8db6561 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -104,9 +104,9 @@ ipcRenderer.on("newpath", (event, newpath) => {
})
ipcRenderer.on("log", (event, msg) => {log(msg)})
+ipcRenderer.on("alert", (event, msg) => {alert(msg)})
ipcRenderer.on("mods", (event, mods) => {
- console.log("refreshed mods")
modcount.innerHTML = `${lang("gui.mods.count")} ${mods.all.length}`;
modsdiv.innerHTML = "";