mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
fix error when getSteamAppDetails fails dont set game as removed when deleting instalation folder fix game not deleting installation folder organize code feat: add open game executable path and installer path
21 lines
385 B
TypeScript
21 lines
385 B
TypeScript
import { gameRepository } from "@main/repository";
|
|
|
|
import { registerEvent } from "../register-event";
|
|
|
|
const updateExecutablePath = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
id: number,
|
|
executablePath: string
|
|
) => {
|
|
return gameRepository.update(
|
|
{
|
|
id,
|
|
},
|
|
{
|
|
executablePath,
|
|
}
|
|
);
|
|
};
|
|
|
|
registerEvent("updateExecutablePath", updateExecutablePath);
|