added proper image saving for custom games + edited game settings to hide buttons if game is custom

This commit is contained in:
Moyasee
2025-09-19 20:46:53 +03:00
parent bf9e3de0b5
commit 9f4fd0ce61
8 changed files with 242 additions and 75 deletions

View File

@@ -143,6 +143,11 @@ contextBridge.exposeInMainWorld("electron", {
logoImageUrl,
libraryHeroImageUrl
),
copyCustomGameAsset: (
sourcePath: string,
assetType: "icon" | "logo" | "hero"
) => ipcRenderer.invoke("copyCustomGameAsset", sourcePath, assetType),
cleanupUnusedAssets: () => ipcRenderer.invoke("cleanupUnusedAssets"),
updateCustomGame: (
shop: GameShop,
objectId: string,