feat: block executable 1:N game

This commit is contained in:
Zamitto 2024-09-14 15:29:52 -03:00
parent fcc24d6b94
commit 939133fcc3
8 changed files with 37 additions and 5 deletions

View file

@ -0,0 +1,13 @@
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);