mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-24 11:21:02 +00:00
fix: async error function had too many arguments
This commit is contained in:
@@ -44,9 +44,7 @@ interface UpdateGameDataParams {
|
|||||||
customOriginalHeroPath?: string | null;
|
customOriginalHeroPath?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateGameData = async (
|
const updateGameData = async (params: UpdateGameDataParams): Promise<Game> => {
|
||||||
params: UpdateGameDataParams
|
|
||||||
): Promise<Game> => {
|
|
||||||
const {
|
const {
|
||||||
gameKey,
|
gameKey,
|
||||||
existingGame,
|
existingGame,
|
||||||
|
|||||||
@@ -164,16 +164,16 @@ contextBridge.exposeInMainWorld("electron", {
|
|||||||
originalHeroPath?: string;
|
originalHeroPath?: string;
|
||||||
}) => ipcRenderer.invoke("updateCustomGame", params),
|
}) => ipcRenderer.invoke("updateCustomGame", params),
|
||||||
updateGameCustomAssets: (params: {
|
updateGameCustomAssets: (params: {
|
||||||
shop: GameShop;
|
shop: GameShop;
|
||||||
objectId: string;
|
objectId: string;
|
||||||
title: string;
|
title: string;
|
||||||
customIconUrl?: string | null;
|
customIconUrl?: string | null;
|
||||||
customLogoImageUrl?: string | null;
|
customLogoImageUrl?: string | null;
|
||||||
customHeroImageUrl?: string | null;
|
customHeroImageUrl?: string | null;
|
||||||
customOriginalIconPath?: string | null;
|
customOriginalIconPath?: string | null;
|
||||||
customOriginalLogoPath?: string | null;
|
customOriginalLogoPath?: string | null;
|
||||||
customOriginalHeroPath?: string | null;
|
customOriginalHeroPath?: string | null;
|
||||||
}) => ipcRenderer.invoke("updateGameCustomAssets", params),
|
}) => ipcRenderer.invoke("updateGameCustomAssets", params),
|
||||||
createGameShortcut: (
|
createGameShortcut: (
|
||||||
shop: GameShop,
|
shop: GameShop,
|
||||||
objectId: string,
|
objectId: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user