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