Files
WT-Offline/apps/launcher/src/shared/ipc/channels.ts
T
N0VAN0M4LY 7d68dc0548 feat(launcher)!: manage multiple game copies
BREAKING CHANGE: The launcher stores copy registrations in copies.json. Installations recorded only in install.json must be registered again.
2026-11-29 15:14:41 +08:00

27 lines
840 B
TypeScript

/**
* 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:',
/** Starting and stopping the active copy. */
'launch:',
/** The launcher's own settings. */
'settings:',
/** 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:';