mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
15 lines
400 B
TypeScript
15 lines
400 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { levelKeys, downloadsSublevel } from "@main/level";
|
|
import { GameShop } from "@types";
|
|
|
|
const removeGame = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
shop: GameShop,
|
|
objectId: string
|
|
) => {
|
|
const downloadKey = levelKeys.game(shop, objectId);
|
|
await downloadsSublevel.del(downloadKey);
|
|
};
|
|
|
|
registerEvent("removeGame", removeGame);
|