# hiroshis198/loki-patches-universal-build architecture

> Architecture diagram of the GitHub repository hiroshis198/loki-patches-universal-build, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hiroshis198/loki-patches-universal-build
- Repository: https://github.com/hiroshis198/loki-patches-universal-build

## Overview

The checked-in runtime is a small Windows hotkey polling executable, not the feature-rich patch suite described in the README. Its loop polls Insert and End; End stops the loop. The header defines configuration defaults, but the sampled runtime does not use them. The advertised radar, rendering, scanning, and input features are not represented in the source tree shown, so they are omitted. Relationships below are limited to calls visible in the sampled C++ source.

Main entry points: [`src/loki_patches_universal_build_core.cpp`](https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/src/loki_patches_universal_build_core.cpp) (Hotkey polling)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_runtime["Runtime loop"]
node_hotkeys["Hotkey polling"]
node_windows["Windows API"]
node_config["Runtime config"]

node_runtime -->|"polls"| node_hotkeys
node_hotkeys -->|"reads keys"| node_windows
node_user -.->|"presses keys"| node_hotkeys

click node_runtime "https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/src/loki_patches_universal_build_core.cpp"
click node_hotkeys "https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/src/loki_patches_universal_build_core.cpp"
click node_config "https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/include/loki_patches_universal_build_runtime.hpp"

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_user toneBlue
class node_runtime,node_hotkeys,node_config toneTeal
class node_windows toneMint
```

## Components

### Other components

- **User**
- [Runtime loop](https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/src/loki_patches_universal_build_core.cpp): `src/loki_patches_universal_build_core.cpp`
- [Hotkey polling](https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/src/loki_patches_universal_build_core.cpp): `src/loki_patches_universal_build_core.cpp`
- **Windows API**
- [Runtime config](https://github.com/Hiroshis198/loki-patches-universal-build/blob/main/include/loki_patches_universal_build_runtime.hpp): `include/loki_patches_universal_build_runtime.hpp`

## Connections

- Runtime loop → Hotkey polling: polls (evidence: `src/loki_patches_universal_build_core.cpp`)
- Hotkey polling → Windows API: reads keys (evidence: `src/loki_patches_universal_build_core.cpp`)
- User → Hotkey polling: presses keys
