mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 02:13:59 +00:00
feat: add initial seeding logic and separation between seeding from downloading
This commit is contained in:
@@ -26,6 +26,8 @@ contextBridge.exposeInMainWorld("electron", {
|
||||
ipcRenderer.invoke("pauseGameDownload", gameId),
|
||||
resumeGameDownload: (gameId: number) =>
|
||||
ipcRenderer.invoke("resumeGameDownload", gameId),
|
||||
startSeeding: (gameId: number, magnet: string, savePath: string) =>
|
||||
ipcRenderer.invoke("startSeeding", gameId, magnet, savePath),
|
||||
onDownloadProgress: (cb: (value: DownloadProgress) => void) => {
|
||||
const listener = (
|
||||
_event: Electron.IpcRendererEvent,
|
||||
|
||||
Reference in New Issue
Block a user