Repository navigation
LCU Integration and UI Modes
Isllan Toso edited this page Nov 21, 2026
·
2 revisions
Bullet integrates with the League Client Update (LCU) using standard client APIs without modifying Riot's installation or requiring external plugin loaders.
Bullet connects to the running League Client across all global Riot regions and regional variants (including China/WeGame):
-
Lockfile Discovery (
Lockfile::find_lockfile_path): Searches explicit overrides (LCU_LOCKFILE), runningCLIENT_EXESprocess directories (walking.app/Contents/LoLancestors on macOS), and Riot Client metadata (%ProgramData%\Riot Games\Metadataon Windows,/Users/Shared/Riot Games/Metadataon macOS). -
Command-Line Credential Fallback (
Lockfile::parse_ux_cmdline): If thelockfileis unavailable or locked,bullet_platform::process::query_process_cmdlinereads--app-portand--remoting-auth-tokendirectly fromLeagueClientUx(viaNtQueryInformationProcess(60)withoutPROCESS_VM_READon Windows, or/bin/pson macOS). -
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.
-
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.
Users can toggle between two selection modes from the Home tab of the Slint Control Panel:
-
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::previewplus a prioritizedurgent_previewchannel for instant hover response). - Keyboard-accessible 4-tab Control Panel (
Home | Skins | Party | Support) built in Slint with WCAG 2.1 AA contrast.
- Borderless floating Slint overlay positioned dynamically next to the League Client window (
-
In-Client Mode:
- Synchronizes catalog state, active selections, chromas/forms, custom mod slots, and Party actions through
OverlayCommandandOverlaySessioninbullet-app/bullet-core. - Automatically falls back to the native Slint desktop window during
Reconnector whenever in-client synchronization is inactive.
- Synchronizes catalog state, active selections, chromas/forms, custom mod slots, and Party actions through
-
catalog::resolve_localequeries/riotclient/region-localewhen building the champion catalog and callsi18n::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.
Architecture & Domain
Client & Asset Pipeline
Platform & Security