feat: adding i18n for cloud sync

This commit is contained in:
Chubby Granny Chaser
2024-09-25 22:22:26 +01:00
parent 32fa69627c
commit 9b5e13ad35
13 changed files with 59 additions and 27 deletions

View File

@@ -0,0 +1,14 @@
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);