diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-08-04 18:44:53 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-08-04 18:44:53 +0200 |
commit | 56f2cb84412252ae0a90076b861f3b1be32be01d (patch) | |
tree | a84aef1744f4117489e69cdaac29c137d035b61c /src/index.js | |
parent | 09b7d16086595b1ba039ecf1c1b904a6e0948d12 (diff) | |
download | Viper-56f2cb84412252ae0a90076b861f3b1be32be01d.tar.gz Viper-56f2cb84412252ae0a90076b861f3b1be32be01d.zip |
feat: support thunderstore ror2mm protocol for installing mods
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 9321598..b26ef1e 100644 --- a/src/index.js +++ b/src/index.js @@ -15,6 +15,7 @@ const mods = require("./modules/mods"); const update = require("./modules/update"); const version = require("./modules/version"); const settings = require("./modules/settings"); +const protocol = require("./modules/protocol"); // loads `ipcMain` events that dont fit in any of the modules directly require("./modules/ipc"); @@ -88,6 +89,7 @@ function start() { // load list of mods on initial load win.webContents.on("dom-ready", () => { + protocol(); send("mods", mods.list()); }) @@ -103,6 +105,7 @@ function start() { } } + // starts the GUI or CLI if (cli.hasArgs()) { if (cli.hasParam("update-viper")) { @@ -112,9 +115,10 @@ if (cli.hasArgs()) { cli.init(); } } else { + app.setAsDefaultProtocolClient("ror2mm"); + // start the window/GUI app.on("ready", () => { - start(); }) } |