mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
14 lines
405 B
TypeScript
14 lines
405 B
TypeScript
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);
|