Skip to content

macOS Support

Isllan Toso edited this page Nov 21, 2026 · 1 revision

macOS Support

Bullet supports both Intel (x86_64-apple-darwin) and Apple Silicon (aarch64-apple-darwin) Macs with strict #[cfg(target_os = "macos")] isolation so Windows behavior remains completely untouched.

Game & Client Discovery (bullet-platform & bullet-lcu)

  • Bundle Layout: Recognizes macOS .app bundles (/Applications/League of Legends.app/Contents/LoL/Game, ~/Applications/..., and /Users/Shared/Riot Games/Metadata).
  • Executables & Lockfile: Searches for LeagueofLegends, LeagueClientUx, and LeagueClient without .exe suffixes, walking .app/Contents/LoL ancestors to locate lockfile or falling back to /bin/ps command-line credential recovery.
  • Build Stamp & Version: game_version::read_time_date_stamp detects 64-bit Mach-O headers (0xFEEDFACF / 0xCAFEBABE) and computes a deterministic FNV-1a header stamp to trigger automatic OverlayCache invalidation on game patches.
  • Main-Thread UI: On macOS, AppKit/winit requires the event loop on the main thread; bullet-app runs bullet_platform::run_interface_on_main_thread on the main thread while the Tokio async runtime executes on a dedicated worker thread.

Built-In 64-Bit Mach-O Patcher (bullet_inject::macos_patcher)

  • Dual-Architecture Support: Parses 64-bit Mach-O headers (__TEXT.__text, __TEXT.__stubs, __DATA.__la_symbol_ptr, and LC_DYLD_INFO lazy bindings) for both CPU_TYPE_X86_64 (Intel / Rosetta 2) and CPU_TYPE_ARM64 (Apple Silicon).
  • In-Memory Redirection: Locates _fopen and wad_verify, patches wad_verify to return 1, and redirects .client archive opens to the native WAD overlay via a short symlink (/tmp/bullet_ovl/).
  • Elevation Handling: Uses osascript administrator authorization via --macos-patcher <prefix> --pid <pid> only when task_for_pid requires elevated privileges.

Clone this wiki locally