From d3228ae7fad117a8313731107f572ba4879569b6 Mon Sep 17 00:00:00 2001 From: GitExample Date: Thu, 3 Feb 2022 01:09:37 +0100 Subject: ability to download from browser This should work for all mods, assuming that all mods come packages the same, aka, in a Zip, with mods/ in it. Which from what I know they do. --- src/app/main.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app/main.js') diff --git a/src/app/main.js b/src/app/main.js index 5f0cc9a..b61b20a 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -153,6 +153,11 @@ function installmod() { ipcRenderer.send("installmod") } +// Tells the main process to install a mod from a URL +function installFromURL(url) { + ipcRenderer.send("installfromurl", url) +} + // Frontend part of settings a new game path ipcRenderer.on("newpath", (event, newpath) => { settings.gamepath = newpath; -- cgit v1.2.3