Files
hydra/src/main/events/library/select-game-wine-prefix.ts
2024-12-09 17:26:20 -03:00

14 lines
374 B
TypeScript

import { gameRepository } from "@main/repository";
import { registerEvent } from "../register-event";
const selectGameWinePrefix = async (
_event: Electron.IpcMainInvokeEvent,
id: number,
winePrefixPath: string | null
) => {
return gameRepository.update({ id }, { winePrefixPath: winePrefixPath });
};
registerEvent("selectGameWinePrefix", selectGameWinePrefix);