mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 06:41:03 +00:00
16 lines
410 B
TypeScript
16 lines
410 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { GameShop } from "@types";
|
|
import { launchGame } from "@main/helpers";
|
|
|
|
const openGame = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
shop: GameShop,
|
|
objectId: string,
|
|
executablePath: string,
|
|
launchOptions?: string | null
|
|
) => {
|
|
await launchGame({ shop, objectId, executablePath, launchOptions });
|
|
};
|
|
|
|
registerEvent("openGame", openGame);
|