Skip to content

LCU Integration and UI Modes

Isllan Toso edited this page Nov 21, 2026 · 2 revisions

LCU Integration and UI Modes (bullet-lcu & bullet-platform)

Bullet integrates with the League Client Update (LCU) using standard client APIs without modifying Riot's installation or requiring external plugin loaders.

Universal LCU Discovery (bullet-lcu)

Bullet connects to the running League Client across all global Riot regions and regional variants (including China/WeGame):

  1. Lockfile Discovery (Lockfile::find_lockfile_path): Searches explicit overrides (LCU_LOCKFILE), running CLIENT_EXES process directories (walking .app/Contents/LoL ancestors on macOS), and Riot Client metadata (%ProgramData%\Riot Games\Metadata on Windows, /Users/Shared/Riot Games/Metadata on macOS).
  2. Command-Line Credential Fallback (Lockfile::parse_ux_cmdline): If the lockfile is unavailable or locked, bullet_platform::process::query_process_cmdline reads --app-port and --remoting-auth-token directly from LeagueClientUx (via NtQueryInformationProcess(60) without PROCESS_VM_READ on Windows, or /bin/ps on macOS).
  3. Stale Lockfile Rejection (Lockfile::is_client_alive): Every discovered lockfile verifies that the target PID is still alive (ProcessFinder::find_first_thread_id) before attempting a TLS connection.

Real-Time LCU Observer & Registration

  • Event-Driven WebSocket + REST Fallback (LcuObserver): Subscribes to LCU WebSocket events (/lol-gameflow/v1/gameflow-phase, /lol-champ-select/v1/session, /lol-lobby/v2/lobby) and falls back to bounded REST polling if a socket disconnects.
  • Loading Card Synchronization (skin_registration): Before the match launches, Bullet registers the chosen skin (or parent skin if using an unowned chroma) with the LCU so teammates and the loading screen card reflect the intended selection.
  • Reconnect Recovery: If a match drops to GamePhase::Reconnect, Bullet preserves the active champion/skin context and re-arms the overlay cleanly for reconnection.

Two Selection Modes (IN_CLIENT_UI)

Users can toggle between two selection modes from the Home tab of the Slint Control Panel:

  1. Bullet Desktop Window (Default):

    • Borderless floating Slint overlay positioned dynamically next to the League Client window (client_window_state).
    • Supports on-demand hover previews for skins and chromas (16-way concurrent fetch in bullet-app::selection::catalog::preview plus a prioritized urgent_preview channel for instant hover response).
    • Keyboard-accessible 4-tab Control Panel (Home | Skins | Party | Support) built in Slint with WCAG 2.1 AA contrast.
  2. In-Client Mode:

    • Synchronizes catalog state, active selections, chromas/forms, custom mod slots, and Party actions through OverlayCommand and OverlaySession in bullet-app / bullet-core.
    • Automatically falls back to the native Slint desktop window during Reconnect or whenever in-client synchronization is inactive.

Dynamic Localization (bullet_platform::i18n)

  • catalog::resolve_locale queries /riotclient/region-locale when building the champion catalog and calls i18n::set_active_locale.
  • Bullet ships hand-written translations for English (en), Português BR (pt), and Español (es), falling back to the OS locale when another client language is active. Skin and chroma display names are fetched already localized from the LCU.

Clone this wiki locally