Feat: Custom Games

This commit is contained in:
Moyasee
2025-09-19 16:22:12 +03:00
parent 7e59e02d03
commit 3409b53268
17 changed files with 158 additions and 111 deletions

View File

@@ -135,7 +135,14 @@ contextBridge.exposeInMainWorld("electron", {
logoImageUrl?: string,
libraryHeroImageUrl?: string
) =>
ipcRenderer.invoke("addCustomGameToLibrary", title, executablePath, iconUrl, logoImageUrl, libraryHeroImageUrl),
ipcRenderer.invoke(
"addCustomGameToLibrary",
title,
executablePath,
iconUrl,
logoImageUrl,
libraryHeroImageUrl
),
updateCustomGame: (
shop: GameShop,
objectId: string,
@@ -144,7 +151,15 @@ contextBridge.exposeInMainWorld("electron", {
logoImageUrl?: string,
libraryHeroImageUrl?: string
) =>
ipcRenderer.invoke("updateCustomGame", shop, objectId, title, iconUrl, logoImageUrl, libraryHeroImageUrl),
ipcRenderer.invoke(
"updateCustomGame",
shop,
objectId,
title,
iconUrl,
logoImageUrl,
libraryHeroImageUrl
),
createGameShortcut: (
shop: GameShop,
objectId: string,
@@ -493,6 +508,4 @@ contextBridge.exposeInMainWorld("electron", {
},
closeEditorWindow: (themeId?: string) =>
ipcRenderer.invoke("closeEditorWindow", themeId),
});