Merge branch 'feature/user-profile' into feature/refator-process-watcher-and-game-running

# Conflicts:
#	src/main/services/hydra-api.ts
#	src/main/services/process-watcher.ts
#	src/renderer/src/declaration.d.ts
This commit is contained in:
Zamitto 2024-06-19 21:05:22 -03:00
commit 800e99fda0
19 changed files with 283 additions and 18 deletions

View file

@ -90,6 +90,12 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.on("on-games-running", listener);
return () => ipcRenderer.removeListener("on-games-running", listener);
},
onLibraryBatchComplete: (cb: () => void) => {
const listener = (_event: Electron.IpcRendererEvent) => cb();
ipcRenderer.on("on-library-batch-complete", listener);
return () =>
ipcRenderer.removeListener("on-library-batch-complete", listener);
},
/* Hardware */
getDiskFreeSpace: (path: string) =>