# gimetuloxa79/crimson-desert-pc-trainer architecture

> Architecture diagram of the GitHub repository gimetuloxa79/crimson-desert-pc-trainer, 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/gimetuloxa79/crimson-desert-pc-trainer
- Repository: https://github.com/gimetuloxa79/crimson-desert-pc-trainer

## Overview

This repository contains a very small Windows C++ runtime: its executable repeatedly polls Insert and End hotkeys, then exits when End is pressed. The header defines runtime defaults, but the sampled executable does not consume them. The README also advertises offset scanning, input smoothing, radar/loot filtering, and hot-swappable profiles; these are represented as documented capabilities, not verified implementations, because no corresponding source appears in the tree. The graph therefore distinguishes observed runtime flow from README-only claims.

Main entry points: [`src/crimson_desert_pc_trainer_core.cpp`](https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/src/crimson_desert_pc_trainer_core.cpp) (Hotkey polling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_main_loop["Runtime loop"]
  node_hotkey_poll["Hotkey polling"]
end

subgraph group_settings["Configuration"]
  node_runtime_config["Runtime defaults"]
end

subgraph group_features["Advertised features"]
  node_offset_scanner["Offset scanner"]
  node_input_smoothing["Input smoothing"]
  node_radar_loot["Radar and loot filter"]
  node_json_profiles["JSON profiles"]
  node_panic_unload["Panic unload"]
end

node_user(("Trainer user"))
node_win_api["Windows key API"]

node_main_loop -->|"polls"| node_hotkey_poll
node_hotkey_poll -->|"reads keys"| node_win_api
node_user -.->|"launches"| node_main_loop
node_user -.->|"activates"| node_offset_scanner
node_user -.->|"configures"| node_input_smoothing
node_user -.->|"uses"| node_radar_loot
node_user -.->|"switches"| node_json_profiles
node_hotkey_poll -.->|"claims End unload"| node_panic_unload

click node_main_loop "https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/src/crimson_desert_pc_trainer_core.cpp"
click node_hotkey_poll "https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/src/crimson_desert_pc_trainer_core.cpp"
click node_runtime_config "https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/include/crimson_desert_pc_trainer_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_main_loop,node_hotkey_poll,node_user toneBlue
class node_runtime_config toneAmber
class node_offset_scanner,node_input_smoothing,node_radar_loot,node_json_profiles,node_panic_unload,node_win_api toneMint
```

## Components

### Runtime

- [Runtime loop](https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/src/crimson_desert_pc_trainer_core.cpp): `src/crimson_desert_pc_trainer_core.cpp`
- [Hotkey polling](https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/src/crimson_desert_pc_trainer_core.cpp): `src/crimson_desert_pc_trainer_core.cpp`

### Configuration

- [Runtime defaults](https://github.com/gimetuloxa79/crimson-desert-pc-trainer/blob/main/include/crimson_desert_pc_trainer_runtime.hpp): `include/crimson_desert_pc_trainer_runtime.hpp`

### Advertised features

- **Offset scanner**
- **Input smoothing**
- **Radar and loot filter**
- **JSON profiles**
- **Panic unload**

### Other components

- **Trainer user**
- **Windows key API**

## Connections

- Runtime loop → Hotkey polling: polls (evidence: `src/crimson_desert_pc_trainer_core.cpp`)
- Hotkey polling → Windows key API: reads keys (evidence: `src/crimson_desert_pc_trainer_core.cpp`)
- Trainer user → Runtime loop: launches
- Trainer user → Offset scanner: activates (evidence: `README.md`)
- Trainer user → Input smoothing: configures (evidence: `README.md`)
- Trainer user → Radar and loot filter: uses (evidence: `README.md`)
- Trainer user → JSON profiles: switches (evidence: `README.md`)
- Hotkey polling → Panic unload: claims End unload (evidence: `README.md`)
