# yyyyy62/borderlands-4-save-editor architecture

> Architecture diagram of the GitHub repository yyyyy62/borderlands-4-save-editor, 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/yyyyy62/borderlands-4-save-editor
- Repository: https://github.com/yyyyy62/borderlands-4-save-editor

## Overview

The repository presents itself as a Borderlands 4 save editor, profile decryptor and Golden Key manager, but the sampled runtime implements only a Windows hotkey polling loop and a small configuration struct. The README also advertises overlay, entity/loot filtering, telemetry and input smoothing; these are retained as documented capabilities, not represented as verified runtime implementations. The sampled code does not load config/settings.json or connect those capabilities to the loop.

Main entry points: [`config/settings.json`](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/config/settings.json) (JSON settings), [`src/borderlands_4_save_editor_core.cpp`](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/src/borderlands_4_save_editor_core.cpp) (Runtime loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_config["Configuration"]
  node_runtime_config["Runtime config struct"]
  node_settings["JSON settings<br/>[settings.json]"]
end

subgraph group_documented["README capabilities"]
  node_overlay["Viewport overlay"]
  node_entity_filter["Entity and loot filter"]
  node_telemetry["Telemetry HUD"]
  node_input_filter["Input smoothing"]
  node_unload["Emergency unload"]
end

node_user(("Desktop user"))
node_windows_input["Windows key input"]

node_user -->|"launches"| node_runtime_loop
node_runtime_loop -->|"polls"| node_hotkey_poll
node_hotkey_poll -->|"reads keys"| node_windows_input
node_settings -.->|"documents controls"| node_overlay
node_settings -.->|"documents controls"| node_entity_filter
node_settings -.->|"documents controls"| node_telemetry
node_settings -.->|"documents controls"| node_input_filter
node_settings -.->|"documents controls"| node_unload

click node_runtime_loop "https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/src/borderlands_4_save_editor_core.cpp"
click node_hotkey_poll "https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/src/borderlands_4_save_editor_core.cpp"
click node_runtime_config "https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/include/borderlands_4_save_editor_runtime.hpp"
click node_settings "https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/config/settings.json"

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_runtime_loop,node_hotkey_poll,node_user toneBlue
class node_runtime_config,node_settings toneAmber
class node_overlay,node_entity_filter,node_telemetry,node_input_filter,node_unload toneMint
class node_windows_input toneIndigo
```

## Components

### Runtime loop

- [Runtime loop](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/src/borderlands_4_save_editor_core.cpp): `src/borderlands_4_save_editor_core.cpp`
- [Hotkey polling](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/src/borderlands_4_save_editor_core.cpp): `src/borderlands_4_save_editor_core.cpp`

### Configuration

- [Runtime config struct](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/include/borderlands_4_save_editor_runtime.hpp): `include/borderlands_4_save_editor_runtime.hpp`
- [JSON settings](https://github.com/yyyyy62/borderlands-4-save-editor/blob/main/config/settings.json): `config/settings.json`

### README capabilities

- **Viewport overlay**
- **Entity and loot filter**
- **Telemetry HUD**
- **Input smoothing**
- **Emergency unload**

### Other components

- **Desktop user**
- **Windows key input**

## Connections

- Desktop user → Runtime loop: launches (evidence: `README.md`)
- Runtime loop → Hotkey polling: polls (evidence: `src/borderlands_4_save_editor_core.cpp`)
- Hotkey polling → Windows key input: reads keys (evidence: `src/borderlands_4_save_editor_core.cpp`)
- JSON settings → Viewport overlay: documents controls (evidence: `README.md`)
- JSON settings → Entity and loot filter: documents controls (evidence: `README.md`)
- JSON settings → Telemetry HUD: documents controls (evidence: `README.md`)
- JSON settings → Input smoothing: documents controls (evidence: `README.md`)
- JSON settings → Emergency unload: documents controls (evidence: `README.md`)
