/** * Prefixes of the IPC channels the window may use. The preload forwards only these. * * Dependency-free: the preload runs sandboxed and cannot load packages. */ /** Prefixes of renderer → main invoke channels. */ export const IPC_CHANNEL_PREFIXES = [ /** The launcher itself: version, folders. */ 'app:', /** System dialogs (folder pickers). */ 'dialog:', /** Installing the offline version: looking at the chosen folders, copying, patching. */ 'install:', /** Listing and managing installed copies. */ 'copies:', /** Read-only detection of decal cache folders in player-selected or registered sources. */ 'decals:', /** Settings shared by the saves of a game copy. */ 'tuning:', /** Additive mods repository, per-copy ordering/toggles, and presets. */ 'mods:', /** Local account and save management. */ 'saves:', /** Starting and stopping the active copy. */ 'launch:', /** The launcher's own settings. */ 'settings:', /** Adaptation packs: the active patch set, update checks, installing a newer pack. */ 'patches:', /** Checking, downloading and installing a launcher release. */ 'updates:', /** The launcher window itself (it draws its own title bar). */ 'window:', ] as const; /** Prefix of main → renderer event channels. */ export const IPC_EVENT_PREFIX = 'event:';