mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-04-17 05:26:04 +02:00
Add the ability to download mods from Nexus, add mod data saving, and allow mods to be saved even if BepInEx is not installed.
This commit is contained in:
@@ -23,6 +23,7 @@ contextBridge.exposeInMainWorld("files", {
|
||||
loadNexusAPI: () => ipcRenderer.invoke("load-nexus-api"),
|
||||
saveTheme: (theme, lacePinState) => ipcRenderer.invoke("save-theme", theme, lacePinState),
|
||||
loadTheme: () => ipcRenderer.invoke("load-theme"),
|
||||
loadInstalledModsInfo: () => ipcRenderer.invoke("load-installed-mods-info"),
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld("electronAPI", {
|
||||
@@ -43,5 +44,6 @@ contextBridge.exposeInMainWorld("bepinex", {
|
||||
contextBridge.exposeInMainWorld("nexus", {
|
||||
verifyAPI: () => ipcRenderer.invoke("verify-nexus-api"),
|
||||
getLatestMods: () => ipcRenderer.invoke("get-latest-mods"),
|
||||
download: (link) => ipcRenderer.invoke("download-mod", link),
|
||||
download: (link) => ipcRenderer.invoke("open-download", link),
|
||||
uninstall: (modId) => ipcRenderer.invoke("uninstall-mod", modId),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user