# fractalengineer/medal-of-honor-psx-recomp architecture

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

- Interactive diagram: https://gitdiagram.com/fractalengineer/medal-of-honor-psx-recomp
- Repository: https://github.com/fractalengineer/medal-of-honor-psx-recomp

## Overview

This repository is a Medal of Honor PlayStation recompilation with an optional experimental Windows 6DoF VR mode. The principal workflow is to launch the game, select an owned disc, and play; VR launch adds headset rendering and tracked controls while flat play remains the default. The graph includes the generated game runtime and game-owned VR input, aim, and stereo components. README and CMake excerpts document the runtime composition; unsampled framework internals are not expanded, and diagnostic scripts are excluded.

Main entry points: [`CMakeLists.txt`](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/CMakeLists.txt) (Recompiled runtime), [`vr/psx_vr_stereo.c`](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/psx_vr_stereo.c) (Stereo rendering), [`vr/moh_vr_input.c`](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/moh_vr_input.c) (VR input mapping), [`README.md`](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/README.md) (VR launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player runtime"]
  node_launcher["Game launcher<br/>[CMakeLists.txt]"]
  node_runtime["Recompiled runtime<br/>[CMakeLists.txt]"]
  node_flat["Flat play<br/>[README.md]"]
end

subgraph group_vr["VR experience"]
  node_vrlaunch["VR launcher<br/>[README.md]"]
  node_stereo["Stereo rendering<br/>[psx_vr_stereo.c]"]
  node_input["VR input mapping<br/>[moh_vr_input.c]"]
  node_aim["Tracked rifle aim<br/>[moh_vr_aim.c]"]
  node_menu_surface["Native menu surface<br/>[psx_vr_stereo.c]"]
end

subgraph group_game["Game integration"]
  node_gamecode["Generated game"]
  node_stereo_mod["Stereo mod package<br/>[manifest.toml]"]
end

node_player(("Player"))
node_disc["Game disc"]
node_openxr["OpenXR runtime"]

node_player -->|"launches"| node_launcher
node_launcher -->|"starts"| node_runtime
node_player -->|"selects"| node_disc
node_runtime -->|"runs"| node_gamecode
node_runtime -->|"supports"| node_flat
node_player -->|"opts into"| node_vrlaunch
node_vrlaunch -->|"starts"| node_runtime
node_runtime -->|"registers"| node_stereo
node_runtime -->|"registers"| node_input
node_runtime -->|"registers"| node_aim
node_openxr -.->|"provides views"| node_stereo
node_openxr -.->|"provides tracking"| node_input
node_stereo_mod -->|"activates"| node_stereo
node_stereo -->|"presents menus"| node_menu_surface
node_input -->|"maps controls"| node_runtime
node_aim -->|"aims rifle"| node_runtime

click node_launcher "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/CMakeLists.txt"
click node_runtime "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/CMakeLists.txt"
click node_gamecode "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/generated/SLUS_009.74_dispatch.c"
click node_flat "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/README.md"
click node_vrlaunch "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/README.md"
click node_stereo "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/psx_vr_stereo.c"
click node_input "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/moh_vr_input.c"
click node_aim "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/moh_vr_aim.c"
click node_stereo_mod "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/mods/preloaded/packages/moh.vr.stereo/0.1.0/manifest.toml"
click node_menu_surface "https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/psx_vr_stereo.c"

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_runtime,node_flat toneBlue
class node_vrlaunch,node_stereo,node_input,node_aim,node_menu_surface toneAmber
class node_gamecode,node_stereo_mod toneMint
class node_player,node_disc,node_openxr toneIndigo
```

## Components

### Player runtime

- [Game launcher](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/CMakeLists.txt): `CMakeLists.txt`
- [Recompiled runtime](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/CMakeLists.txt): `CMakeLists.txt`
- [Flat play](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/README.md): `README.md`

### VR experience

- [VR launcher](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/README.md): `README.md`
- [Stereo rendering](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/psx_vr_stereo.c): `vr/psx_vr_stereo.c`
- [VR input mapping](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/moh_vr_input.c): `vr/moh_vr_input.c`
- [Tracked rifle aim](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/moh_vr_aim.c): `vr/moh_vr_aim.c`
- [Native menu surface](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/vr/psx_vr_stereo.c): `vr/psx_vr_stereo.c`

### Game integration

- [Generated game](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/generated/SLUS_009.74_dispatch.c): `generated/SLUS_009.74_dispatch.c`
- [Stereo mod package](https://github.com/fractalengineer/medal-of-honor-psx-recomp/blob/master/mods/preloaded/packages/moh.vr.stereo/0.1.0/manifest.toml): `mods/preloaded/packages/moh.vr.stereo/0.1.0/manifest.toml`

### Other components

- **Player**
- **Game disc**
- **OpenXR runtime**

## Connections

- Player → Game launcher: launches (evidence: `README.md`)
- Game launcher → Recompiled runtime: starts (evidence: `CMakeLists.txt`)
- Player → Game disc: selects (evidence: `README.md`)
- Recompiled runtime → Generated game: runs (evidence: `CMakeLists.txt`)
- Recompiled runtime → Flat play: supports (evidence: `README.md`)
- Player → VR launcher: opts into (evidence: `README.md`)
- VR launcher → Recompiled runtime: starts (evidence: `README.md`)
- Recompiled runtime → Stereo rendering: registers (evidence: `CMakeLists.txt`)
- Recompiled runtime → VR input mapping: registers (evidence: `CMakeLists.txt`)
- Recompiled runtime → Tracked rifle aim: registers (evidence: `CMakeLists.txt`)
- OpenXR runtime → Stereo rendering: provides views
- OpenXR runtime → VR input mapping: provides tracking
- Stereo mod package → Stereo rendering: activates
- Stereo rendering → Native menu surface: presents menus (evidence: `README.md`)
- VR input mapping → Recompiled runtime: maps controls (evidence: `README.md`)
- Tracked rifle aim → Recompiled runtime: aims rifle (evidence: `README.md`)
