feat: adding automatic cloud sync

This commit is contained in:
Chubby Granny Chaser
2025-03-09 19:14:24 +00:00
parent 886e176b08
commit ed699a8dee
19 changed files with 275 additions and 96 deletions

View File

@@ -101,6 +101,17 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("putDownloadSource", objectIds),
/* Library */
toggleAutomaticCloudSync: (
shop: GameShop,
objectId: string,
automaticCloudSync: boolean
) =>
ipcRenderer.invoke(
"toggleAutomaticCloudSync",
shop,
objectId,
automaticCloudSync
),
addGameToLibrary: (shop: GameShop, objectId: string, title: string) =>
ipcRenderer.invoke("addGameToLibrary", shop, objectId, title),
createGameShortcut: (shop: GameShop, objectId: string) =>
@@ -301,6 +312,7 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("sendFriendRequest", userId),
/* User */
getAuth: () => ipcRenderer.invoke("getAuth"),
getUser: (userId: string) => ipcRenderer.invoke("getUser", userId),
blockUser: (userId: string) => ipcRenderer.invoke("blockUser", userId),
unblockUser: (userId: string) => ipcRenderer.invoke("unblockUser", userId),