# lambor590/half-sword-enhancer architecture

> Architecture diagram of the GitHub repository lambor590/half-sword-enhancer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lambor590/half-sword-enhancer
- Repository: https://github.com/lambor590/half-sword-enhancer

## Overview

Half Sword Enhancer combines an optional Windows launcher with an in-game mod. The launcher detects the game, installs or updates the appropriate artifacts, and can start the game. In-game, users open and search a menu to edit player/world settings, spawn content, customize equipment, and configure shortcuts, appearance, and texture overrides. The graph keeps those product areas distinct. Some feature links are documented by the README; source excerpts and the index show only selected implementation relationships, so unsampled wiring is not inferred.

Main entry points: [`Mod/src/MenuManager.cpp`](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/MenuManager.cpp) (Menu manager), [`Launcher/src/Main.cpp`](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/Main.cpp) (Launcher app), [`Launcher/src/UpdateManager.cpp`](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/UpdateManager.cpp) (Updates), [`Mod/include/Hooks/GameHook.h`](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/include/Hooks/GameHook.h) (Game hooks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher"]
  node_launcher_app["Launcher app<br/>[Main.cpp]"]
  node_game_discovery["Game discovery<br/>[SteamLocator.cpp]"]
  node_update["Updates<br/>[UpdateManager.cpp]"]
  node_network["Downloads<br/>[NetworkManager.cpp]"]
  node_package_cache["Package cache<br/>[PackageCache.cpp]"]
  node_installation["Installation<br/>[InstallManager.cpp]"]
end

subgraph group_runtime["Mod runtime"]
  node_mod_entry["Mod entry points<br/>[DllMain.cpp]"]
  node_ue4ss_entry["UE4SS entry<br/>[DllMain.cpp]"]
  node_lifecycle["Mod lifecycle"]
  node_game_hooks["Game hooks<br/>[GameHook.h]"]
  node_game_sdk["Unreal game SDK<br/>[Basic.hpp]"]
end

subgraph group_menu["In-game menu"]
  node_menu_manager["Menu manager<br/>[MenuManager.cpp]"]
  node_configuration[("Settings and presets<br/>[ConfigManager.cpp]")]
  node_keybinds["Shortcuts<br/>[KeybindManager.cpp]"]
  node_notifications["Notifications"]
end

subgraph group_game_features["Game features"]
  node_player_editing["Player editing"]
  node_world_tools["World and camera"]
  node_spawn_equipment["Spawn and equipment"]
  node_weapon_editor["Weapon editor"]
  node_texture_overrides["Texture overrides"]
  node_free_camera["Free camera manager"]
end

node_user(("Player"))
node_game["Half Sword"]

node_user -->|"runs optionally"| node_launcher_app
node_launcher_app -.->|"finds game"| node_game_discovery
node_launcher_app -.->|"checks updates"| node_update
node_update -->|"downloads package"| node_network
node_update -->|"caches package"| node_package_cache
node_update -->|"installs package"| node_installation
node_installation -.->|"installs artifacts"| node_game
node_launcher_app -.->|"starts game"| node_game
node_user -->|"starts through Steam"| node_game
node_game -->|"loads mod"| node_mod_entry
node_game -->|"loads via UE4SS"| node_ue4ss_entry
node_mod_entry -.->|"initializes"| node_lifecycle
node_ue4ss_entry -.->|"initializes"| node_lifecycle
node_user -->|"opens and searches"| node_menu_manager
node_menu_manager -->|"loads settings"| node_configuration
node_menu_manager -->|"uses shortcuts"| node_keybinds
node_menu_manager -->|"shows notifications"| node_notifications
node_menu_manager -.->|"offers editing"| node_player_editing
node_menu_manager -.->|"offers world tools"| node_world_tools
node_menu_manager -.->|"offers equipment"| node_spawn_equipment
node_menu_manager -.->|"offers weapon editing"| node_weapon_editor
node_menu_manager -.->|"offers overrides"| node_texture_overrides
node_user -->|"controls camera"| node_free_camera
node_lifecycle -.->|"uses hooks"| node_game_hooks
node_texture_overrides -->|"registers hooks"| node_game_hooks
node_world_tools -->|"uses hooks"| node_game_hooks
node_spawn_equipment -->|"queues game actions"| node_game_hooks
node_world_tools -->|"uses SDK types"| node_game_sdk
node_spawn_equipment -->|"uses SDK types"| node_game_sdk

click node_launcher_app "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/Main.cpp"
click node_game_discovery "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/SteamLocator.cpp"
click node_update "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/UpdateManager.cpp"
click node_network "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/NetworkManager.cpp"
click node_package_cache "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/PackageCache.cpp"
click node_installation "https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/InstallManager.cpp"
click node_mod_entry "https://github.com/lambor590/half-sword-enhancer/blob/main/Proxy/src/DllMain.cpp"
click node_ue4ss_entry "https://github.com/lambor590/half-sword-enhancer/blob/main/UE4SSBridge/src/DllMain.cpp"
click node_lifecycle "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Core/ModRuntimeLifecycle.cpp"
click node_game_hooks "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/include/Hooks/GameHook.h"
click node_menu_manager "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/MenuManager.cpp"
click node_configuration "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/ConfigManager.cpp"
click node_keybinds "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/KeybindManager.cpp"
click node_notifications "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/NotificationManager.cpp"
click node_player_editing "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/SaveEditorSection.cpp"
click node_world_tools "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/FreeCameraManager.cpp"
click node_spawn_equipment "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/LoadoutManagerSection.cpp"
click node_weapon_editor "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/WeaponEditorSection.cpp"
click node_texture_overrides "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/AssetOverrideManager.cpp"
click node_free_camera "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/FreeCameraManager.cpp"
click node_game_sdk "https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/SDK/SDK/Basic.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_launcher_app,node_game_discovery,node_update,node_network,node_package_cache,node_installation toneBlue
class node_mod_entry,node_ue4ss_entry,node_lifecycle,node_game_hooks,node_game_sdk toneAmber
class node_menu_manager,node_configuration,node_keybinds,node_notifications toneMint
class node_player_editing,node_world_tools,node_spawn_equipment,node_weapon_editor,node_texture_overrides,node_free_camera toneRose
class node_user,node_game toneIndigo
```

## Components

### Launcher

- [Launcher app](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/Main.cpp): `Launcher/src/Main.cpp`
- [Game discovery](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/SteamLocator.cpp): `Launcher/src/SteamLocator.cpp`
- [Updates](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/UpdateManager.cpp): `Launcher/src/UpdateManager.cpp`
- [Downloads](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/NetworkManager.cpp): `Launcher/src/NetworkManager.cpp`
- [Package cache](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/PackageCache.cpp): `Launcher/src/PackageCache.cpp`
- [Installation](https://github.com/lambor590/half-sword-enhancer/blob/main/Launcher/src/InstallManager.cpp): `Launcher/src/InstallManager.cpp`

### Mod runtime

- [Mod entry points](https://github.com/lambor590/half-sword-enhancer/blob/main/Proxy/src/DllMain.cpp): `Proxy/src/DllMain.cpp`
- [UE4SS entry](https://github.com/lambor590/half-sword-enhancer/blob/main/UE4SSBridge/src/DllMain.cpp): `UE4SSBridge/src/DllMain.cpp`
- [Mod lifecycle](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Core/ModRuntimeLifecycle.cpp): `Mod/src/Core/ModRuntimeLifecycle.cpp`
- [Game hooks](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/include/Hooks/GameHook.h): `Mod/include/Hooks/GameHook.h`
- [Unreal game SDK](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/SDK/SDK/Basic.hpp): `Mod/SDK/SDK/Basic.hpp`

### In-game menu

- [Menu manager](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/MenuManager.cpp): `Mod/src/MenuManager.cpp`
- [Settings and presets](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/ConfigManager.cpp): `Mod/src/ConfigManager.cpp`
- [Shortcuts](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/KeybindManager.cpp): `Mod/src/KeybindManager.cpp`
- [Notifications](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/NotificationManager.cpp): `Mod/src/NotificationManager.cpp`

### Game features

- [Player editing](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/SaveEditorSection.cpp): `Mod/src/Sections/SaveEditorSection.cpp`
- [World and camera](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/FreeCameraManager.cpp): `Mod/src/FreeCameraManager.cpp`
- [Spawn and equipment](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/LoadoutManagerSection.cpp): `Mod/src/Sections/LoadoutManagerSection.cpp`
- [Weapon editor](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/Sections/WeaponEditorSection.cpp): `Mod/src/Sections/WeaponEditorSection.cpp`
- [Texture overrides](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/AssetOverrideManager.cpp): `Mod/src/AssetOverrideManager.cpp`
- [Free camera manager](https://github.com/lambor590/half-sword-enhancer/blob/main/Mod/src/FreeCameraManager.cpp): `Mod/src/FreeCameraManager.cpp`

### Other components

- **Player**
- **Half Sword**

## Connections

- Player → Launcher app: runs optionally (evidence: `README.md`)
- Launcher app → Game discovery: finds game
- Launcher app → Updates: checks updates
- Updates → Downloads: downloads package (evidence: `Launcher/src/UpdateManager.cpp`)
- Updates → Package cache: caches package (evidence: `Launcher/src/UpdateManager.cpp`)
- Updates → Installation: installs package (evidence: `Launcher/src/UpdateManager.cpp`)
- Installation → Half Sword: installs artifacts
- Launcher app → Half Sword: starts game
- Player → Half Sword: starts through Steam (evidence: `README.md`)
- Half Sword → Mod entry points: loads mod (evidence: `README.md`)
- Half Sword → UE4SS entry: loads via UE4SS (evidence: `README.md`)
- Mod entry points → Mod lifecycle: initializes
- UE4SS entry → Mod lifecycle: initializes
- Player → Menu manager: opens and searches (evidence: `README.md`)
- Menu manager → Settings and presets: loads settings (evidence: `Mod/src/MenuManager.cpp`)
- Menu manager → Shortcuts: uses shortcuts (evidence: `Mod/src/MenuManager.cpp`)
- Menu manager → Notifications: shows notifications (evidence: `Mod/src/MenuManager.cpp`)
- Menu manager → Player editing: offers editing
- Menu manager → World and camera: offers world tools
- Menu manager → Spawn and equipment: offers equipment
- Menu manager → Weapon editor: offers weapon editing
- Menu manager → Texture overrides: offers overrides
- Player → Free camera manager: controls camera (evidence: `README.md`)
- Mod lifecycle → Game hooks: uses hooks
- Texture overrides → Game hooks: registers hooks (evidence: `Mod/src/AssetOverrideManager.cpp`)
- World and camera → Game hooks: uses hooks (evidence: `Mod/src/FreeCameraManager.cpp`)
- Spawn and equipment → Game hooks: queues game actions (evidence: `Mod/src/Sections/LoadoutManagerSection.cpp`)
- World and camera → Unreal game SDK: uses SDK types (evidence: `Mod/src/FreeCameraManager.cpp`)
- Spawn and equipment → Unreal game SDK: uses SDK types (evidence: `Mod/src/Sections/LoadoutManagerSection.cpp`)
