diff options
author | 0neGal <mail@0negal.com> | 2022-01-03 01:20:50 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-03 01:20:50 +0100 |
commit | 42e6f3b358bf4d569a0849f3d5c99bb58bf432ba (patch) | |
tree | f4495accf8e57b904dd8e4c0afca3da409f22be9 /src/index.js | |
parent | c356beee2be1840aa257cb335272026d846f02d1 (diff) | |
download | Viper-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/index.js')
-rw-r--r-- | src/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 7ef9321..45400a5 100644 --- a/src/index.js +++ b/src/index.js @@ -42,6 +42,7 @@ function start() { ipcMain.on("ns-updated", () => {win.webContents.send("ns-updated")}) ipcMain.on("ns-updating", () => {win.webContents.send("ns-updating")}) ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)}) + ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)}) ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())}) win.webContents.once("dom-ready", () => { |