fix: original path to image not showing in modal after updating game asset

This commit is contained in:
Moyasee
2025-09-30 02:09:19 +03:00
parent f0cb2f9579
commit 959bed746b
6 changed files with 81 additions and 13 deletions

View File

@@ -158,7 +158,10 @@ contextBridge.exposeInMainWorld("electron", {
title: string,
iconUrl?: string,
logoImageUrl?: string,
libraryHeroImageUrl?: string
libraryHeroImageUrl?: string,
originalIconPath?: string,
originalLogoPath?: string,
originalHeroPath?: string
) =>
ipcRenderer.invoke(
"updateCustomGame",
@@ -167,7 +170,10 @@ contextBridge.exposeInMainWorld("electron", {
title,
iconUrl,
logoImageUrl,
libraryHeroImageUrl
libraryHeroImageUrl,
originalIconPath,
originalLogoPath,
originalHeroPath
),
updateGameCustomAssets: (
shop: GameShop,
@@ -175,7 +181,10 @@ contextBridge.exposeInMainWorld("electron", {
title: string,
customIconUrl?: string | null,
customLogoImageUrl?: string | null,
customHeroImageUrl?: string | null
customHeroImageUrl?: string | null,
customOriginalIconPath?: string | null,
customOriginalLogoPath?: string | null,
customOriginalHeroPath?: string | null
) =>
ipcRenderer.invoke(
"updateGameCustomAssets",
@@ -184,7 +193,10 @@ contextBridge.exposeInMainWorld("electron", {
title,
customIconUrl,
customLogoImageUrl,
customHeroImageUrl
customHeroImageUrl,
customOriginalIconPath,
customOriginalLogoPath,
customOriginalHeroPath
),
createGameShortcut: (
shop: GameShop,