Add automatic dependency downloading for Thunderstore mods and support for mods requiring DLLs in BepInEx core or patchers folders

This commit is contained in:
2026-04-14 16:56:45 +02:00
parent 44da1214dd
commit caee674448
2 changed files with 141 additions and 35 deletions

View File

@@ -288,7 +288,7 @@ async function navigate(page) {
electronAPI.openExternalLink(modLink);
});
modDownloadButton = modTemplateCopy.getElementById("download-mod-button");
const modDownloadButton = modTemplateCopy.getElementById("download-mod-button");
modDownloadButton.addEventListener("click", function (event) {
event.preventDefault();
const modDownloadLink = `${modUrl}?tab=files`;
@@ -372,7 +372,7 @@ async function navigate(page) {
electronAPI.openExternalLink(modLink);
});
modDownloadButton = modTemplateCopy.getElementById("download-mod-button");
const modDownloadButton = modTemplateCopy.getElementById("download-mod-button");
modDownloadButton.addEventListener("click", function (event) {
event.preventDefault();
const modDownloadLink = `https://thunderstore.io/package/download/${mod.author}/${mod.name}/${mod.version}`;
@@ -610,7 +610,7 @@ async function searchInstalledMods() {
//////////////// NEXUS / THUNDERSTORE ////////////////
async function verifyNexusAPI() {
response = await nexus.verifyAPI();
const response = await nexus.verifyAPI();
const nexusCheckImage = document.getElementById("nexus-check-image");
if (nexusCheckImage == undefined) {