feat: adding wine prefix

This commit is contained in:
Chubby Granny Chaser 2024-10-19 15:48:41 +01:00
parent a498f9dd80
commit 0e5d37a3a0
No known key found for this signature in database
26 changed files with 423 additions and 130 deletions

View file

@ -107,6 +107,8 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("createGameShortcut", id),
updateExecutablePath: (id: number, executablePath: string) =>
ipcRenderer.invoke("updateExecutablePath", id, executablePath),
selectGameWinePrefix: (id: number, winePrefixPath: string) =>
ipcRenderer.invoke("selectGameWinePrefix", id, winePrefixPath),
verifyExecutablePathInUse: (executablePath: string) =>
ipcRenderer.invoke("verifyExecutablePathInUse", executablePath),
getLibrary: () => ipcRenderer.invoke("getLibrary"),
@ -148,8 +150,12 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("getDiskFreeSpace", path),
/* Cloud save */
uploadSaveGame: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("uploadSaveGame", objectId, shop),
uploadSaveGame: (
objectId: string,
shop: GameShop,
downloadOptionTitle: string | null
) =>
ipcRenderer.invoke("uploadSaveGame", objectId, shop, downloadOptionTitle),
downloadGameArtifact: (
objectId: string,
shop: GameShop,
@ -183,7 +189,7 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.on(`on-backup-download-progress-${objectId}-${shop}`, listener);
return () =>
ipcRenderer.removeListener(
`on-backup-download-complete-${objectId}-${shop}`,
`on-backup-download-progress-${objectId}-${shop}`,
listener
);
},