# blackbearreloaded/prosperoeden architecture

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

- Interactive diagram: https://gitdiagram.com/blackbearreloaded/prosperoeden
- Repository: https://github.com/blackbearreloaded/prosperoeden

## Overview

ProsperoEden is a PlayStation 5 port of the Eden emulator. The principal workflow is to browse local and network game sources in the launcher, select a title, download it if needed, and start an emulated session; saves can be imported/exported and synchronized around play. The graph also preserves major launcher, configuration, mod, graphics, and update capabilities documented in the README. Several subsystem links are documented rather than verified in sampled call sites; unsampled implementation details are not inferred.

Main entry points: [`headless/prosperoeden/eden_services.cpp`](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/eden_services.cpp) (App services), [`headless/main.cpp`](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/main.cpp) (Emulator runtime), [`headless/prosperoeden/pe/ui/launcher.cpp`](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/launcher.cpp) (Launcher UI), [`headless/prosperoeden/pe/ui/library.cpp`](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/library.cpp) (Game library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher"]
  node_launcher_ui["Launcher UI<br/>[launcher.cpp]"]
  node_library["Game library<br/>[library.cpp]"]
  node_settings_ui["Settings screens<br/>[settings.cpp]"]
  node_services["App services<br/>[eden_services.cpp]"]
  node_ui_contract["UI services contract<br/>[services.hpp]"]
end

subgraph group_emulation["Emulation"]
  node_emulator["Emulator runtime<br/>[main.cpp]"]
  node_controller_input["Controller input<br/>[devices.h]"]
  node_graphics["Graphics backends<br/>[graphics.cpp]"]
  node_audio["Audio output<br/>[audio.cpp]"]
end

subgraph group_content["Content and settings"]
  node_game_files["Game files"]
  node_profiles["Profiles<br/>[profiles.h]"]
  node_settings_store[("Settings store<br/>[settings_store.h]")]
  node_mods["Mods and cheats<br/>[mods.h]"]
  node_metadata["Game metadata<br/>[metadata_bridge.h]"]
end

subgraph group_remote["Remote services"]
  node_remote_manager["Remote source manager<br/>[remote.cpp]"]
  node_remote_backends["Remote backends<br/>[backends.h]"]
  node_romm_client["RomM client<br/>[romm_client.cpp]"]
  node_save_sync["Save synchronization<br/>[save_sync.cpp]"]
end

subgraph group_platform["PS5 platform"]
  node_crash_reports["Crash reporting<br/>[crash_report.h]"]
  node_update_check["Update check<br/>[update_check.c]"]
  node_update_helper["Update installer<br/>[main.cpp]"]
end

node_player(("Player"))
node_ps5{{"PS5 runtime"}}
node_romm_server(("RomM server"))

node_player -->|"navigates"| node_launcher_ui
node_launcher_ui -->|"opens library"| node_library
node_library -->|"requests games"| node_services
node_services -->|"reads metadata"| node_metadata
node_services -->|"scans files"| node_game_files
node_services -->|"gets remote titles"| node_remote_manager
node_library -->|"selects title"| node_services
node_services -->|"starts game"| node_emulator
node_remote_manager -->|"dispatches sources"| node_remote_backends
node_remote_backends -->|"queries RomM"| node_romm_client
node_romm_client -->|"requests games"| node_romm_server
node_remote_manager -->|"downloads games"| node_game_files
node_services -->|"syncs saves"| node_save_sync
node_player -->|"configures"| node_settings_ui
node_settings_ui -->|"changes preferences"| node_services
node_services -->|"manages profiles"| node_profiles
node_services -.->|"persists settings"| node_settings_store
node_services -->|"manages mods"| node_mods
node_emulator -->|"reads controllers"| node_controller_input
node_emulator -->|"renders game"| node_graphics
node_emulator -->|"outputs audio"| node_audio
node_emulator -->|"records failures"| node_crash_reports
node_launcher_ui -->|"checks releases"| node_update_check
node_update_check -.->|"installs update"| node_update_helper
node_emulator -->|"runs on"| node_ps5

click node_launcher_ui "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/launcher.cpp"
click node_library "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/library.cpp"
click node_settings_ui "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/settings.cpp"
click node_services "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/eden_services.cpp"
click node_ui_contract "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/services.hpp"
click node_profiles "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/profiles.h"
click node_settings_store "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/settings_store.h"
click node_mods "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/mods.h"
click node_metadata "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/metadata_bridge.h"
click node_remote_manager "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/remote.cpp"
click node_remote_backends "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/backends.h"
click node_romm_client "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/romm/romm_client.cpp"
click node_save_sync "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/save_sync.cpp"
click node_emulator "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/main.cpp"
click node_controller_input "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/devices.h"
click node_graphics "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/graphics.cpp"
click node_audio "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/audio.cpp"
click node_crash_reports "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/crash_report.h"
click node_update_check "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/update_check/update_check.c"
click node_update_helper "https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/self_update_helper/main.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_ui,node_library,node_settings_ui,node_services,node_ui_contract toneBlue
class node_emulator,node_controller_input,node_graphics,node_audio toneAmber
class node_game_files,node_profiles,node_settings_store,node_mods,node_metadata,node_romm_server toneMint
class node_remote_manager,node_remote_backends,node_romm_client,node_save_sync toneRose
class node_crash_reports,node_update_check,node_update_helper,node_player,node_ps5 toneIndigo
```

## Components

### Launcher

- [Launcher UI](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/launcher.cpp): `headless/prosperoeden/pe/ui/launcher.cpp`
- [Game library](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/library.cpp): `headless/prosperoeden/pe/ui/library.cpp`
- [Settings screens](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/settings.cpp): `headless/prosperoeden/pe/ui/settings.cpp`
- [App services](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/eden_services.cpp): `headless/prosperoeden/eden_services.cpp`
- [UI services contract](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/prosperoeden/pe/ui/services.hpp): `headless/prosperoeden/pe/ui/services.hpp`

### Emulation

- [Emulator runtime](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/main.cpp): `headless/main.cpp`
- [Controller input](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/devices.h): `headless/devices.h`
- [Graphics backends](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/graphics.cpp): `headless/graphics.cpp`
- [Audio output](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/audio.cpp): `headless/audio.cpp`

### Content and settings

- **Game files**
- [Profiles](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/profiles.h): `headless/profiles.h`
- [Settings store](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/settings_store.h): `headless/settings_store.h`
- [Mods and cheats](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/mods.h): `headless/mods.h`
- [Game metadata](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/metadata_bridge.h): `headless/metadata_bridge.h`

### Remote services

- [Remote source manager](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/remote.cpp): `headless/remote/remote.cpp`
- [Remote backends](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/backends.h): `headless/remote/backends.h`
- [RomM client](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/romm/romm_client.cpp): `headless/remote/romm/romm_client.cpp`
- [Save synchronization](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/remote/save_sync.cpp): `headless/remote/save_sync.cpp`

### PS5 platform

- [Crash reporting](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/crash_report.h): `headless/crash_report.h`
- [Update check](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/update_check/update_check.c): `headless/update_check/update_check.c`
- [Update installer](https://github.com/blackbearreloaded/prosperoeden/blob/main/headless/self_update_helper/main.cpp): `headless/self_update_helper/main.cpp`

### Other components

- **Player**
- **PS5 runtime**
- **RomM server**

## Connections

- Player → Launcher UI: navigates
- Launcher UI → Game library: opens library
- Game library → App services: requests games (evidence: `headless/prosperoeden/eden_services.cpp`)
- App services → Game metadata: reads metadata (evidence: `headless/prosperoeden/eden_services.cpp`)
- App services → Game files: scans files (evidence: `headless/prosperoeden/eden_services.cpp`)
- App services → Remote source manager: gets remote titles (evidence: `headless/prosperoeden/eden_services.cpp`)
- Game library → App services: selects title
- App services → Emulator runtime: starts game
- Remote source manager → Remote backends: dispatches sources (evidence: `headless/remote/remote.cpp`)
- Remote backends → RomM client: queries RomM
- RomM client → RomM server: requests games
- Remote source manager → Game files: downloads games
- App services → Save synchronization: syncs saves
- Player → Settings screens: configures
- Settings screens → App services: changes preferences
- App services → Profiles: manages profiles (evidence: `headless/prosperoeden/eden_services.cpp`)
- App services → Settings store: persists settings
- App services → Mods and cheats: manages mods (evidence: `headless/prosperoeden/eden_services.cpp`)
- Emulator runtime → Controller input: reads controllers (evidence: `headless/main.cpp`)
- Emulator runtime → Graphics backends: renders game
- Emulator runtime → Audio output: outputs audio
- Emulator runtime → Crash reporting: records failures (evidence: `headless/main.cpp`)
- Launcher UI → Update check: checks releases
- Update check → Update installer: installs update
- Emulator runtime → PS5 runtime: runs on
