# legiteriumz/openbrmods architecture

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

- Interactive diagram: https://gitdiagram.com/legiteriumz/openbrmods
- Repository: https://github.com/legiteriumz/openbrmods

## Overview

BR MODS is a Windows launcher and injected Free Fire overlay for BlueStacks 5. The documented workflow is to locate and boot the emulator/game, inject the DLL, read guest memory and resolve IL2CPP data, then render the menu and game-state overlays while applying selected aim and gameplay features. The graph preserves documented capabilities, but several links are dashed because the relevant implementation files were not sampled; sampled main.cpp references establish only the edges cited there.

Main entry points: [`example_win32_directx11/main.cpp`](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/main.cpp) (Overlay DLL), [`example_win32_directx11/src/ui/ui.cpp`](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/ui/ui.cpp) (ImGui Menu), [`example_win32_directx11/EspLines/Data/Data.cpp`](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Data/Data.cpp) (Player Data), [`example_win32_directx11/launcher_entry.cpp`](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/launcher_entry.cpp) (Launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and Injection"]
  node_launcher["Launcher<br/>[launcher_entry.cpp]"]
  node_adb["ADB Wrapper<br/>[Adb.cpp]"]
end

subgraph group_runtime["Overlay Runtime"]
  node_dll["Overlay DLL<br/>[main.cpp]"]
  node_overlay["Window and DX11<br/>[Overlay.cpp]"]
  node_ui["ImGui Menu<br/>[ui.cpp]"]
  node_settings["Runtime Config<br/>[Globals.hpp]"]
end

subgraph group_game["Game Data and Features"]
  node_memory["Guest Memory Access<br/>[NashMem.hpp]"]
  node_adbmod["ADB Game Discovery<br/>[Adb.cpp]"]
  node_offsets["IL2CPP Offsets<br/>[Offsets.hpp]"]
  node_entities["Player Data<br/>[Data.cpp]"]
  node_math["Projection Math<br/>[Vector3.hpp]"]
  node_visuals["ESP Visuals<br/>[Visual.cpp]"]
  node_aimbot["Aimbot<br/>[Aimbot.cpp]"]
  node_silent["Silent Aim<br/>[BrutalSilent.cpp]"]
  node_exploits["Gameplay Features"]
end

subgraph group_presence["Presence Integration"]
  node_discord["Discord RPC Wrapper<br/>[Discord.cpp]"]
  node_discordsdk["Discord RPC SDK<br/>[discord_rpc.h]"]
end

node_user(("Operator"))
node_bluestacks["BlueStacks"]
node_gameproc["Free Fire"]
node_discordsvc["Discord"]

node_user -.->|"starts"| node_launcher
node_launcher -.->|"boots via"| node_adb
node_adb -.->|"controls"| node_bluestacks
node_adb -.->|"launches"| node_gameproc
node_launcher -.->|"injects"| node_dll
node_dll -.->|"initializes"| node_overlay
node_dll -->|"hooks reads"| node_memory
node_dll -->|"initializes"| node_adbmod
node_adbmod -.->|"resolves runtime"| node_gameproc
node_memory -.->|"reads state"| node_entities
node_offsets -.->|"locates data"| node_entities
node_entities -.->|"supplies players"| node_visuals
node_entities -.->|"supplies targets"| node_aimbot
node_entities -.->|"supplies targets"| node_silent
node_math -.->|"projects positions"| node_visuals
node_ui -.->|"configures"| node_visuals
node_ui -.->|"configures"| node_aimbot
node_ui -.->|"configures"| node_silent
node_ui -.->|"configures"| node_exploits
node_dll -->|"references"| node_ui
node_dll -->|"references"| node_silent
node_dll -->|"references"| node_exploits
node_ui -->|"uses config"| node_settings
node_discord -->|"calls"| node_discordsdk
node_discordsdk -.->|"updates presence"| node_discordsvc

click node_launcher "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/launcher_entry.cpp"
click node_adb "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/adb/Adb.cpp"
click node_dll "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/main.cpp"
click node_overlay "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/Overlay/Overlay.cpp"
click node_ui "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/ui/ui.cpp"
click node_settings "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/Globals.hpp"
click node_memory "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Memory/NashMem.hpp"
click node_adbmod "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/adb/Adb.cpp"
click node_offsets "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Offsets.hpp"
click node_entities "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Data/Data.cpp"
click node_math "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Math/Vector/Vector3.hpp"
click node_visuals "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Features/Visuals/Visual.cpp"
click node_aimbot "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Aimbot/Aimbot.cpp"
click node_silent "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/BrutalSilent/BrutalSilent.cpp"
click node_exploits "https://github.com/legiteriumz/openbrmods/tree/main/example_win32_directx11/EspLines/Exploits"
click node_discord "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/DiscordRPC/Discord.cpp"
click node_discordsdk "https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/DiscordSDK/include/discord_rpc.h"

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_launcher,node_adb toneBlue
class node_dll,node_overlay,node_ui,node_settings toneAmber
class node_memory,node_adbmod,node_offsets,node_entities,node_math,node_visuals,node_aimbot,node_silent,node_exploits toneMint
class node_discord,node_discordsdk toneRose
class node_user,node_bluestacks,node_gameproc,node_discordsvc toneIndigo
```

## Components

### Launch and Injection

- [Launcher](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/launcher_entry.cpp): `example_win32_directx11/launcher_entry.cpp`
- [ADB Wrapper](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/adb/Adb.cpp): `example_win32_directx11/src/adb/Adb.cpp`

### Overlay Runtime

- [Overlay DLL](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/main.cpp): `example_win32_directx11/main.cpp`
- [Window and DX11](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/Overlay/Overlay.cpp): `example_win32_directx11/src/Overlay/Overlay.cpp`
- [ImGui Menu](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/ui/ui.cpp): `example_win32_directx11/src/ui/ui.cpp`
- [Runtime Config](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/Globals.hpp): `example_win32_directx11/src/Globals.hpp`

### Game Data and Features

- [Guest Memory Access](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Memory/NashMem.hpp): `example_win32_directx11/EspLines/Memory/NashMem.hpp`
- [ADB Game Discovery](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/src/adb/Adb.cpp): `example_win32_directx11/src/adb/Adb.cpp`
- [IL2CPP Offsets](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Offsets.hpp): `example_win32_directx11/EspLines/Offsets.hpp`
- [Player Data](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Data/Data.cpp): `example_win32_directx11/EspLines/Data/Data.cpp`
- [Projection Math](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Math/Vector/Vector3.hpp): `example_win32_directx11/EspLines/Math/Vector/Vector3.hpp`
- [ESP Visuals](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Features/Visuals/Visual.cpp): `example_win32_directx11/EspLines/Features/Visuals/Visual.cpp`
- [Aimbot](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/Aimbot/Aimbot.cpp): `example_win32_directx11/EspLines/Aimbot/Aimbot.cpp`
- [Silent Aim](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/EspLines/BrutalSilent/BrutalSilent.cpp): `example_win32_directx11/EspLines/BrutalSilent/BrutalSilent.cpp`
- [Gameplay Features](https://github.com/legiteriumz/openbrmods/tree/main/example_win32_directx11/EspLines/Exploits): `example_win32_directx11/EspLines/Exploits`

### Presence Integration

- [Discord RPC Wrapper](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/DiscordRPC/Discord.cpp): `example_win32_directx11/DiscordRPC/Discord.cpp`
- [Discord RPC SDK](https://github.com/legiteriumz/openbrmods/blob/main/example_win32_directx11/DiscordSDK/include/discord_rpc.h): `example_win32_directx11/DiscordSDK/include/discord_rpc.h`

### Other components

- **Operator**
- **BlueStacks**
- **Free Fire**
- **Discord**

## Connections

- Operator → Launcher: starts
- Launcher → ADB Wrapper: boots via
- ADB Wrapper → BlueStacks: controls
- ADB Wrapper → Free Fire: launches
- Launcher → Overlay DLL: injects
- Overlay DLL → Window and DX11: initializes
- Overlay DLL → Guest Memory Access: hooks reads (evidence: `example_win32_directx11/main.cpp`)
- Overlay DLL → ADB Game Discovery: initializes (evidence: `example_win32_directx11/main.cpp`)
- ADB Game Discovery → Free Fire: resolves runtime
- Guest Memory Access → Player Data: reads state
- IL2CPP Offsets → Player Data: locates data
- Player Data → ESP Visuals: supplies players
- Player Data → Aimbot: supplies targets
- Player Data → Silent Aim: supplies targets
- Projection Math → ESP Visuals: projects positions
- ImGui Menu → ESP Visuals: configures
- ImGui Menu → Aimbot: configures
- ImGui Menu → Silent Aim: configures
- ImGui Menu → Gameplay Features: configures
- Overlay DLL → ImGui Menu: references (evidence: `example_win32_directx11/main.cpp`)
- Overlay DLL → Silent Aim: references (evidence: `example_win32_directx11/main.cpp`)
- Overlay DLL → Gameplay Features: references (evidence: `example_win32_directx11/main.cpp`)
- ImGui Menu → Runtime Config: uses config (evidence: `example_win32_directx11/src/ui/ui.cpp`)
- Discord RPC Wrapper → Discord RPC SDK: calls (evidence: `example_win32_directx11/DiscordRPC/Discord.cpp`)
- Discord RPC SDK → Discord: updates presence
