feat: improving cloud sync manual mapping

This commit is contained in:
Chubby Granny Chaser 2024-10-22 13:34:34 +01:00
parent 7de6e96f63
commit bfcf8178d8
No known key found for this signature in database
15 changed files with 164 additions and 132 deletions

View file

@ -0,0 +1,14 @@
import { registerEvent } from "../register-event";
import type { GameShop } from "@types";
import { Ludusavi } from "@main/services";
const selectGameBackupPath = async (
_event: Electron.IpcMainInvokeEvent,
_shop: GameShop,
objectId: string,
backupPath: string | null
) => {
return Ludusavi.addCustomGame(objectId, backupPath);
};
registerEvent("selectGameBackupPath", selectGameBackupPath);