mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { HydraApi } from "@main/services";
|
|
|
|
const renameGameArtifact = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
gameArtifactId: string,
|
|
label: string
|
|
) => {
|
|
await HydraApi.put(`/profile/games/artifacts/${gameArtifactId}`, {
|
|
label,
|
|
});
|
|
};
|
|
|
|
registerEvent("renameGameArtifact", renameGameArtifact);
|