mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 06:11:03 +00:00
14 lines
374 B
TypeScript
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);
|