Files
hydra/src/main/events/cloud-save/upload-save-game.ts
Chubby Granny Chaser a12e5a15fa chore: bumping version
2025-04-18 22:57:28 +01:00

20 lines
466 B
TypeScript

import { CloudSync } from "@main/services";
import { registerEvent } from "../register-event";
import type { GameShop } from "@types";
const uploadSaveGame = async (
_event: Electron.IpcMainInvokeEvent,
objectId: string,
shop: GameShop,
downloadOptionTitle: string | null
) => {
return CloudSync.uploadSaveGame(
objectId,
shop,
downloadOptionTitle,
CloudSync.getBackupLabel(false)
);
};
registerEvent("uploadSaveGame", uploadSaveGame);