# solleo95/reuc-recomp architecture

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

- Interactive diagram: https://gitdiagram.com/solleo95/reuc-recomp
- Repository: https://github.com/solleo95/reuc-recomp

## Overview

This is a native PC recompilation/port of Resident Evil: The Umbrella Chronicles. The user path is to select and unpack their own Wii game image in the launcher, start the game, then play through the native runtime and renderer with PC controls; online co-op and mods extend that experience. The graph preserves translation, emulation/runtime, graphics, input, networking, and modding as distinct areas. Many implementation files were not sampled, so those branches use README-supported relationships rather than inferred call chains.

Main entry points: [`runtime/ppc_rt.h`](https://github.com/solleo95/reuc-recomp/blob/main/runtime/ppc_rt.h) (Native game runtime), [`launcher/main.cpp`](https://github.com/solleo95/reuc-recomp/blob/main/launcher/main.cpp) (Launcher UI), [`common/translator/emit.cpp`](https://github.com/solleo95/reuc-recomp/blob/main/common/translator/emit.cpp) (Native code emission), [`launcher/launch.cpp`](https://github.com/solleo95/reuc-recomp/blob/main/launcher/launch.cpp) (Game startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launcher and setup"]
  node_launcher["Launcher UI<br/>[main.cpp]"]
  node_unpack["Image unpacking<br/>[image_unpack.cpp]"]
  node_game_start["Game startup<br/>[launch.cpp]"]
end

subgraph group_translation["PowerPC translation"]
  node_dol["DOL image handling<br/>[dol.cpp]"]
  node_analysis["Program analysis<br/>[analyzer.cpp]"]
  node_ppc_isa["PowerPC instruction set<br/>[isa.cpp]"]
  node_translator["Native code emission<br/>[emit.cpp]"]
end

subgraph group_runtime["Game runtime"]
  node_runtime["Native game runtime<br/>[ppc_rt.h]"]
  node_hle["Wii SDK services<br/>[gx.cpp]"]
  node_game_loop["Game loop<br/>[game_loop.cpp]"]
end

subgraph group_graphics["Graphics"]
  node_renderer["Graphics renderer"]
  node_effects["Rendering effects<br/>[graphics_effects.h]"]
end

subgraph group_play["Controls and co-op"]
  node_input["PC input<br/>[gamepad_input.cpp]"]
  node_wiimote["Wii Remote input<br/>[wiimote_input.cpp]"]
  node_local_coop["Local co-op<br/>[coop_session.cpp]"]
end

subgraph group_extensions["Mods and networking"]
  node_netplay["Online co-op<br/>[netplay.cpp]"]
  node_mod_runtime["Mod runtime<br/>[standalone.cpp]"]
  node_mod_content["Game modifications<br/>[arc_mods.cpp]"]
end

node_player(("Player"))
node_game_image["Game image"]

node_player -->|"configures"| node_launcher
node_game_image -->|"provides image"| node_unpack
node_launcher -->|"unpacks image"| node_unpack
node_launcher -->|"starts game"| node_game_start
node_game_start -->|"launches native game"| node_runtime
node_dol -->|"analyzed by"| node_analysis
node_analysis -->|"feeds translation"| node_translator
node_ppc_isa -.->|"instruction definitions"| node_translator
node_translator -->|"produces native code"| node_runtime
node_runtime -.->|"provides guest services"| node_hle
node_runtime -.->|"runs gameplay"| node_game_loop
node_game_loop -->|"renders frames"| node_renderer
node_renderer -.->|"applies effects"| node_effects
node_player -->|"controls game"| node_input
node_player -->|"aims and acts"| node_wiimote
node_input -->|"device participation"| node_local_coop
node_wiimote -->|"device participation"| node_local_coop
node_player -->|"joins online co-op"| node_netplay
node_player -->|"uses mods"| node_mod_runtime
node_mod_runtime -.->|"loads modifications"| node_mod_content

click node_launcher "https://github.com/solleo95/reuc-recomp/blob/main/launcher/main.cpp"
click node_unpack "https://github.com/solleo95/reuc-recomp/blob/main/launcher/image_unpack.cpp"
click node_game_start "https://github.com/solleo95/reuc-recomp/blob/main/launcher/launch.cpp"
click node_dol "https://github.com/solleo95/reuc-recomp/blob/main/common/dol.cpp"
click node_analysis "https://github.com/solleo95/reuc-recomp/blob/main/common/analyzer/analyzer.cpp"
click node_ppc_isa "https://github.com/solleo95/reuc-recomp/blob/main/common/ppc/isa.cpp"
click node_translator "https://github.com/solleo95/reuc-recomp/blob/main/common/translator/emit.cpp"
click node_runtime "https://github.com/solleo95/reuc-recomp/blob/main/runtime/ppc_rt.h"
click node_hle "https://github.com/solleo95/reuc-recomp/blob/main/runtime/hle/gx.cpp"
click node_game_loop "https://github.com/solleo95/reuc-recomp/blob/main/game/game_loop.cpp"
click node_renderer "https://github.com/solleo95/reuc-recomp/blob/main/renderer/vulkan_renderer.cpp"
click node_effects "https://github.com/solleo95/reuc-recomp/blob/main/renderer/graphics_effects.h"
click node_input "https://github.com/solleo95/reuc-recomp/blob/main/game/gamepad_input.cpp"
click node_wiimote "https://github.com/solleo95/reuc-recomp/blob/main/game/wiimote_input.cpp"
click node_local_coop "https://github.com/solleo95/reuc-recomp/blob/main/game/coop_session.cpp"
click node_netplay "https://github.com/solleo95/reuc-recomp/blob/main/common/netplay.cpp"
click node_mod_runtime "https://github.com/solleo95/reuc-recomp/blob/main/modding/standalone.cpp"
click node_mod_content "https://github.com/solleo95/reuc-recomp/blob/main/modding/arc/arc_mods.cpp"

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_unpack,node_game_start toneBlue
class node_dol,node_analysis,node_ppc_isa,node_translator toneAmber
class node_runtime,node_hle,node_game_loop toneMint
class node_renderer,node_effects toneRose
class node_input,node_wiimote,node_local_coop,node_player,node_game_image toneIndigo
class node_netplay,node_mod_runtime,node_mod_content toneTeal
```

## Components

### Launcher and setup

- [Launcher UI](https://github.com/solleo95/reuc-recomp/blob/main/launcher/main.cpp): `launcher/main.cpp`
- [Image unpacking](https://github.com/solleo95/reuc-recomp/blob/main/launcher/image_unpack.cpp): `launcher/image_unpack.cpp`
- [Game startup](https://github.com/solleo95/reuc-recomp/blob/main/launcher/launch.cpp): `launcher/launch.cpp`

### PowerPC translation

- [DOL image handling](https://github.com/solleo95/reuc-recomp/blob/main/common/dol.cpp): `common/dol.cpp`
- [Program analysis](https://github.com/solleo95/reuc-recomp/blob/main/common/analyzer/analyzer.cpp): `common/analyzer/analyzer.cpp`
- [PowerPC instruction set](https://github.com/solleo95/reuc-recomp/blob/main/common/ppc/isa.cpp): `common/ppc/isa.cpp`
- [Native code emission](https://github.com/solleo95/reuc-recomp/blob/main/common/translator/emit.cpp): `common/translator/emit.cpp`

### Game runtime

- [Native game runtime](https://github.com/solleo95/reuc-recomp/blob/main/runtime/ppc_rt.h): `runtime/ppc_rt.h`
- [Wii SDK services](https://github.com/solleo95/reuc-recomp/blob/main/runtime/hle/gx.cpp): `runtime/hle/gx.cpp`
- [Game loop](https://github.com/solleo95/reuc-recomp/blob/main/game/game_loop.cpp): `game/game_loop.cpp`

### Graphics

- [Graphics renderer](https://github.com/solleo95/reuc-recomp/blob/main/renderer/vulkan_renderer.cpp): `renderer/vulkan_renderer.cpp`
- [Rendering effects](https://github.com/solleo95/reuc-recomp/blob/main/renderer/graphics_effects.h): `renderer/graphics_effects.h`

### Controls and co-op

- [PC input](https://github.com/solleo95/reuc-recomp/blob/main/game/gamepad_input.cpp): `game/gamepad_input.cpp`
- [Wii Remote input](https://github.com/solleo95/reuc-recomp/blob/main/game/wiimote_input.cpp): `game/wiimote_input.cpp`
- [Local co-op](https://github.com/solleo95/reuc-recomp/blob/main/game/coop_session.cpp): `game/coop_session.cpp`

### Mods and networking

- [Online co-op](https://github.com/solleo95/reuc-recomp/blob/main/common/netplay.cpp): `common/netplay.cpp`
- [Mod runtime](https://github.com/solleo95/reuc-recomp/blob/main/modding/standalone.cpp): `modding/standalone.cpp`
- [Game modifications](https://github.com/solleo95/reuc-recomp/blob/main/modding/arc/arc_mods.cpp): `modding/arc/arc_mods.cpp`

### Other components

- **Player**
- **Game image**

## Connections

- Player → Launcher UI: configures (evidence: `README.md`)
- Game image → Image unpacking: provides image (evidence: `README.md`)
- Launcher UI → Image unpacking: unpacks image
- Launcher UI → Game startup: starts game (evidence: `README.md`)
- Game startup → Native game runtime: launches native game (evidence: `README.md`)
- DOL image handling → Program analysis: analyzed by
- Program analysis → Native code emission: feeds translation
- PowerPC instruction set → Native code emission: instruction definitions
- Native code emission → Native game runtime: produces native code (evidence: `README.md`)
- Native game runtime → Wii SDK services: provides guest services
- Native game runtime → Game loop: runs gameplay
- Game loop → Graphics renderer: renders frames (evidence: `README.md`)
- Graphics renderer → Rendering effects: applies effects
- Player → PC input: controls game (evidence: `README.md`)
- Player → Wii Remote input: aims and acts (evidence: `README.md`)
- PC input → Local co-op: device participation
- Wii Remote input → Local co-op: device participation
- Player → Online co-op: joins online co-op (evidence: `README.md`)
- Player → Mod runtime: uses mods (evidence: `README.md`)
- Mod runtime → Game modifications: loads modifications
