# lucannez64/darling-lol architecture

> Architecture diagram of the GitHub repository lucannez64/darling-lol, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lucannez64/darling-lol
- Repository: https://github.com/lucannez64/darling-lol

## Overview

darling-lol is an experimental host-side toolkit and set of Darling runtime overrides for launching the macOS League client on x86-64 Linux. The documented user journey is to prepare/install the runtime, install League through Riot’s UI, then launch and manually play. The tree exposes runtime installers, path/state helpers and operational tools, but not the documented shell launch wrappers or the Darling patch sources themselves. Capability nodes therefore point to the available installer/tool paths; relationships beyond explicit README statements are omitted.

Main entry points: [`scripts/configure.py`](https://github.com/lucannez64/darling-lol/blob/main/scripts/configure.py) (Configure paths), [`scripts/nix-state.py`](https://github.com/lucannez64/darling-lol/blob/main/scripts/nix-state.py) (Prefix readiness), [`tools/exec-guest.py`](https://github.com/lucannez64/darling-lol/blob/main/tools/exec-guest.py) (Riot installer), [`tools/recover-hidden-riot-client.py`](https://github.com/lucannez64/darling-lol/blob/main/tools/recover-hidden-riot-client.py) (Hidden-window recovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and readiness"]
  node_configure["Configure paths<br/>[configure.py]"]
  node_path_validation["Validate runtime paths<br/>[runtime_paths.py]"]
  node_prefix_state["Prefix readiness<br/>[nix-state.py]"]
end

subgraph group_runtime["Darling runtime"]
  node_darling["Darling runtime"]
  node_runtime_libs["Runtime libraries"]
  node_memory["Memory overrides"]
  node_server["Server runtime"]
end

subgraph group_compat["Compatibility capabilities"]
  node_graphics["Graphics and presentation"]
  node_audio["Audio compatibility"]
  node_appkit["AppKit window fixes"]
  node_foundation["Foundation runtime"]
end

subgraph group_operations["Client operations"]
  node_riot_installer["Riot installer<br/>[exec-guest.py]"]
  node_riot_client["Riot and League clients"]
  node_client_recovery["Hidden-window recovery"]
  node_ui_supervisor["In-game UI supervisor"]
end

node_user(("Linux user"))

node_user -->|"sets paths"| node_configure
node_configure -->|"configures identity"| node_prefix_state
node_prefix_state -->|"resolves paths"| node_path_validation
node_user -->|"builds and installs"| node_darling
node_darling -->|"receives overrides"| node_runtime_libs
node_darling -->|"receives overrides"| node_memory
node_darling -->|"uses runtime"| node_server
node_darling -->|"provides compatibility"| node_graphics
node_darling -->|"provides compatibility"| node_audio
node_darling -->|"provides compatibility"| node_appkit
node_darling -->|"provides compatibility"| node_foundation
node_user -->|"starts installation"| node_riot_installer
node_riot_installer -->|"launches through Darling"| node_riot_client
node_user -->|"launches manually"| node_riot_client
node_client_recovery -->|"shuts down session"| node_darling
node_ui_supervisor -->|"closes client UI"| node_riot_client

click node_configure "https://github.com/lucannez64/darling-lol/blob/main/scripts/configure.py"
click node_path_validation "https://github.com/lucannez64/darling-lol/blob/main/tools/runtime_paths.py"
click node_prefix_state "https://github.com/lucannez64/darling-lol/blob/main/scripts/nix-state.py"
click node_runtime_libs "https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-libs-runtime.py"
click node_memory "https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-memory-runtime.py"
click node_server "https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-darling-server.py"
click node_graphics "https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-metal-runtime.py"
click node_audio "https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-audio-runtime.py"
click node_appkit "https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-appkit-runtime.py"
click node_foundation "https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-foundation-runtime.py"
click node_riot_installer "https://github.com/lucannez64/darling-lol/blob/main/tools/exec-guest.py"
click node_client_recovery "https://github.com/lucannez64/darling-lol/blob/main/tools/recover-hidden-riot-client.py"
click node_ui_supervisor "https://github.com/lucannez64/darling-lol/blob/main/tools/close-league-client-in-game.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_configure,node_path_validation,node_prefix_state,node_user toneBlue
class node_darling,node_runtime_libs,node_memory,node_server toneAmber
class node_graphics,node_audio,node_appkit,node_foundation toneMint
class node_riot_installer,node_riot_client,node_client_recovery,node_ui_supervisor toneRose
```

## Components

### Setup and readiness

- [Configure paths](https://github.com/lucannez64/darling-lol/blob/main/scripts/configure.py): `scripts/configure.py`
- [Validate runtime paths](https://github.com/lucannez64/darling-lol/blob/main/tools/runtime_paths.py): `tools/runtime_paths.py`
- [Prefix readiness](https://github.com/lucannez64/darling-lol/blob/main/scripts/nix-state.py): `scripts/nix-state.py`

### Darling runtime

- **Darling runtime**
- [Runtime libraries](https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-libs-runtime.py): `tools/install-riot-libs-runtime.py`
- [Memory overrides](https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-memory-runtime.py): `tools/install-riot-memory-runtime.py`
- [Server runtime](https://github.com/lucannez64/darling-lol/blob/main/tools/install-riot-darling-server.py): `tools/install-riot-darling-server.py`

### Compatibility capabilities

- [Graphics and presentation](https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-metal-runtime.py): `tools/build-riot-metal-runtime.py`
- [Audio compatibility](https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-audio-runtime.py): `tools/build-riot-audio-runtime.py`
- [AppKit window fixes](https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-appkit-runtime.py): `tools/build-riot-appkit-runtime.py`
- [Foundation runtime](https://github.com/lucannez64/darling-lol/blob/main/tools/build-riot-foundation-runtime.py): `tools/build-riot-foundation-runtime.py`

### Client operations

- [Riot installer](https://github.com/lucannez64/darling-lol/blob/main/tools/exec-guest.py): `tools/exec-guest.py`
- **Riot and League clients**
- [Hidden-window recovery](https://github.com/lucannez64/darling-lol/blob/main/tools/recover-hidden-riot-client.py): `tools/recover-hidden-riot-client.py`
- [In-game UI supervisor](https://github.com/lucannez64/darling-lol/blob/main/tools/close-league-client-in-game.py): `tools/close-league-client-in-game.py`

### Other components

- **Linux user**

## Connections

- Linux user → Configure paths: sets paths (evidence: `README.md`)
- Configure paths → Prefix readiness: configures identity (evidence: `scripts/nix-state.py`)
- Prefix readiness → Validate runtime paths: resolves paths (evidence: `scripts/nix-state.py`)
- Linux user → Darling runtime: builds and installs (evidence: `README.md`)
- Darling runtime → Runtime libraries: receives overrides (evidence: `README.md`)
- Darling runtime → Memory overrides: receives overrides (evidence: `README.md`)
- Darling runtime → Server runtime: uses runtime (evidence: `README.md`)
- Darling runtime → Graphics and presentation: provides compatibility (evidence: `README.md`)
- Darling runtime → Audio compatibility: provides compatibility (evidence: `README.md`)
- Darling runtime → AppKit window fixes: provides compatibility (evidence: `README.md`)
- Darling runtime → Foundation runtime: provides compatibility (evidence: `README.md`)
- Linux user → Riot installer: starts installation (evidence: `README.md`)
- Riot installer → Riot and League clients: launches through Darling (evidence: `README.md`)
- Linux user → Riot and League clients: launches manually (evidence: `README.md`)
- Hidden-window recovery → Darling runtime: shuts down session (evidence: `tools/recover-hidden-riot-client.py`)
- In-game UI supervisor → Riot and League clients: closes client UI (evidence: `tools/close-league-client-in-game.py`)
