# anggorodhanumurti/themaphack architecture

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

- Interactive diagram: https://gitdiagram.com/anggorodhanumurti/themaphack
- Repository: https://github.com/anggorodhanumurti/themaphack

## Overview

Themaphack is an Android native mod menu for Mobile Legends. In the documented external workflow, the user loads the native module into the game, interacts with the menu, and uses maphack and ESP overlays during gameplay. The tree indicates supporting login, IL2CPP, hook, memory-patching, rendering, and touch-input components. README capabilities guide the product-level branches; implementation excerpts for these runtime modules were not provided, so the internal wiring is intentionally limited.

Main entry points: [`jni/DrawMenu.h`](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/DrawMenu.h) (Mod menu), [`jni/Render.h`](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Render.h) (Overlay rendering), [`jni/Tools/Login/Login.h`](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Tools/Login/Login.h) (Login and keys), [`jni/Config/TouchSystem.h`](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Config/TouchSystem.h) (Touch input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Runtime entry"]
  node_native_entry["Native entry<br/>[Main.cpp]"]
end

subgraph group_interface["Menu and overlay"]
  node_menu["Mod menu<br/>[DrawMenu.h]"]
  node_touch["Touch input<br/>[TouchSystem.h]"]
  node_overlay["Overlay rendering<br/>[Render.h]"]
end

subgraph group_game["Game integration"]
  node_maphack["Responsive maphack<br/>[Bypass.h]"]
  node_esp["Complete ESP<br/>[Gloss.h]"]
  node_il2cpp["IL2CPP access<br/>[Il2Cpp.cpp]"]
  node_hooks["Native hooks<br/>[SubstrateHook.cpp]"]
  node_memory["Memory patching<br/>[MemoryPatch.cpp]"]
end

subgraph group_support["Access and utilities"]
  node_login["Login and keys<br/>[Login.h]"]
  node_network["Key service"]
end

node_player(("Player"))
node_mobile_legends(("Mobile Legends"))

node_player -->|"uses"| node_menu
node_mobile_legends -->|"hosts external module"| node_native_entry
node_player -.->|"requests access"| node_login
node_login -.->|"validates access"| node_network
node_touch -->|"provides input"| node_menu
node_menu -->|"displays controls"| node_overlay
node_overlay -->|"shows overlay"| node_player
node_mobile_legends -->|"supplies gameplay context"| node_esp
node_mobile_legends -->|"supplies gameplay context"| node_maphack

click node_native_entry "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Main.cpp"
click node_menu "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/DrawMenu.h"
click node_touch "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Config/TouchSystem.h"
click node_overlay "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Render.h"
click node_maphack "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/XYZ/Bypass.h"
click node_esp "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/GlossHook/Gloss.h"
click node_il2cpp "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Tools/Il2Cpp.cpp"
click node_hooks "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Substrate/SubstrateHook.cpp"
click node_memory "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/KittyMemory/MemoryPatch.cpp"
click node_login "https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Tools/Login/Login.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_native_entry toneBlue
class node_menu,node_touch,node_overlay toneAmber
class node_maphack,node_esp,node_il2cpp,node_hooks,node_memory toneMint
class node_login,node_network toneRose
class node_player,node_mobile_legends toneIndigo
```

## Components

### Runtime entry

- [Native entry](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Main.cpp): `jni/Main.cpp`

### Menu and overlay

- [Mod menu](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/DrawMenu.h): `jni/DrawMenu.h`
- [Touch input](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Config/TouchSystem.h): `jni/Config/TouchSystem.h`
- [Overlay rendering](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Render.h): `jni/Render.h`

### Game integration

- [Responsive maphack](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/XYZ/Bypass.h): `jni/XYZ/Bypass.h`
- [Complete ESP](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/GlossHook/Gloss.h): `jni/GlossHook/Gloss.h`
- [IL2CPP access](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Tools/Il2Cpp.cpp): `jni/Tools/Il2Cpp.cpp`
- [Native hooks](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Substrate/SubstrateHook.cpp): `jni/Substrate/SubstrateHook.cpp`
- [Memory patching](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/KittyMemory/MemoryPatch.cpp): `jni/KittyMemory/MemoryPatch.cpp`

### Access and utilities

- [Login and keys](https://github.com/anggorodhanumurti/themaphack/blob/main/jni/Tools/Login/Login.h): `jni/Tools/Login/Login.h`
- **Key service**

### Other components

- **Player**
- **Mobile Legends**

## Connections

- Player → Mod menu: uses
- Mobile Legends → Native entry: hosts external module
- Player → Login and keys: requests access
- Login and keys → Key service: validates access
- Touch input → Mod menu: provides input
- Mod menu → Overlay rendering: displays controls
- Overlay rendering → Player: shows overlay
- Mobile Legends → Complete ESP: supplies gameplay context
- Mobile Legends → Responsive maphack: supplies gameplay context
