mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 17:23:57 +00:00
14 lines
362 B
TypeScript
14 lines
362 B
TypeScript
import { gameRepository } from "@main/repository";
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const verifyExecutablePathInUse = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
executablePath: string
|
|
) => {
|
|
return gameRepository.findOne({
|
|
where: { executablePath },
|
|
});
|
|
};
|
|
|
|
registerEvent("verifyExecutablePathInUse", verifyExecutablePathInUse);
|