mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 17:53:55 +00:00
15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { GameShop } from "@types";
|
|
import { Ludusavi } from "@main/services";
|
|
|
|
const checkGameCloudSyncSupport = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
objectId: string,
|
|
shop: GameShop
|
|
) => {
|
|
const games = await Ludusavi.findGames(shop, objectId);
|
|
return games.length === 1;
|
|
};
|
|
|
|
registerEvent("checkGameCloudSyncSupport", checkGameCloudSyncSupport);
|