mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add initial seeding logic and separation between seeding from downloading
This commit is contained in:
parent
83b7fb83ab
commit
bd8974c7cb
6 changed files with 64 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue