mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-28 05:11:02 +00:00
feat: improving cloud sync manual mapping
This commit is contained in:
14
src/main/events/cloud-save/select-game-backup-path.ts
Normal file
14
src/main/events/cloud-save/select-game-backup-path.ts
Normal 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);
|
||||
Reference in New Issue
Block a user