# plastikman/orbis-win architecture

> Architecture diagram of the GitHub repository plastikman/orbis-win, 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/plastikman/orbis-win
- Repository: https://github.com/plastikman/orbis-win

## Overview

orbis-win is a PS4 port of prospero-win/Wine intended to run Windows games as a GoldHEN-installed app. The documented player workflow is to install the app, prepare a game prefix and profile on a PC, transfer them to the console, then select and launch the game. The visible source tree chiefly contains the PS4 native platform layer and diagnostic programs, not the launcher or game-setup implementation. Those documented stages are retained, while their internal wiring is not inferred. Arrows to platform services follow the README; source excerpts show specific video, controller, and memory responsibilities.

Main entry points: [`src/native/pw_platform_bind_ps4.c`](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_platform_bind_ps4.c) (Platform binding), [`src/native`](https://github.com/plastikman/orbis-win/tree/main/src/native) (Wine runtime), [`src/native/pw_videoout_ps4.c`](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_videoout_ps4.c) (Video output), [`src/controller-map/main.c`](https://github.com/plastikman/orbis-win/blob/main/src/controller-map/main.c) (Controller map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Game preparation"]
  node_gamefiles["Game and prefix"]
  node_profiles["Game profiles"]
end

subgraph group_launch["Console launch"]
  node_launcher["Game launcher"]
  node_wine["Wine runtime"]
end

subgraph group_platform["PS4 platform"]
  node_platformbind["Platform binding"]
  node_video["Video output<br/>[pw_videoout_ps4.c]"]
  node_vulkan["Vulkan driver"]
  node_pad["Controller input<br/>[pw_pad_ps4.c]"]
  node_audio["Audio output<br/>[pw_audio_ps4.c]"]
  node_network["Network control<br/>[pw_netctl_ps4.c]"]
  node_osk["On-screen keyboard<br/>[pw_osk_ps4.c]"]
  node_dmem["Direct memory"]
  node_wineheap["Wine heap backing"]
end

subgraph group_diagnostics["Native diagnostics"]
  node_presenttest["Presenter probe<br/>[main.c]"]
  node_controllerprobe["Controller map<br/>[main.c]"]
  node_inputviewer["Input viewers"]
end

node_player(("Player"))
node_pc(("Linux PC / VM"))
node_ftp["GoldHEN FTP"]

node_pc -->|"prepares prefix"| node_gamefiles
node_pc -->|"configures game"| node_profiles
node_pc -->|"transfers files"| node_ftp
node_ftp -->|"uploads prefix"| node_gamefiles
node_ftp -->|"uploads profile"| node_profiles
node_player -->|"selects game"| node_launcher
node_launcher -->|"launches game"| node_wine
node_wine -.->|"uses PS4 layer"| node_platformbind
node_platformbind -.->|"provides display"| node_video
node_platformbind -.->|"provides input"| node_pad
node_platformbind -.->|"provides audio"| node_audio
node_platformbind -.->|"provides networking"| node_network
node_platformbind -.->|"provides keyboard"| node_osk
node_wine -.->|"renders graphics"| node_vulkan
node_wine -->|"maps guest memory"| node_dmem
node_dmem -->|"backs heap"| node_wineheap
node_presenttest -->|"tests output"| node_video
node_controllerprobe -->|"reads controller"| node_pad
node_controllerprobe -->|"draws display"| node_video
node_inputviewer -.->|"shows input state"| node_player

click node_wine "https://github.com/plastikman/orbis-win/tree/main/src/native"
click node_platformbind "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_platform_bind_ps4.c"
click node_video "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_videoout_ps4.c"
click node_vulkan "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_vulkan_radv_ps4.c"
click node_pad "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_pad_ps4.c"
click node_audio "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_audio_ps4.c"
click node_network "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_netctl_ps4.c"
click node_osk "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_osk_ps4.c"
click node_dmem "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_wine_dmem_glue_ps4.c"
click node_wineheap "https://github.com/plastikman/orbis-win/blob/main/src/native/pw_wineserver_heap_ps4.c"
click node_presenttest "https://github.com/plastikman/orbis-win/blob/main/src/present-test/main.c"
click node_controllerprobe "https://github.com/plastikman/orbis-win/blob/main/src/controller-map/main.c"
click node_inputviewer "https://github.com/plastikman/orbis-win/tree/main/src/input-viewer"

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_gamefiles,node_profiles toneBlue
class node_launcher,node_wine toneAmber
class node_platformbind,node_video,node_vulkan,node_pad,node_audio,node_network,node_osk,node_dmem,node_wineheap toneMint
class node_presenttest,node_controllerprobe,node_inputviewer toneRose
class node_player,node_pc,node_ftp toneIndigo
```

## Components

### Game preparation

- **Game and prefix**
- **Game profiles**

### Console launch

- **Game launcher**
- [Wine runtime](https://github.com/plastikman/orbis-win/tree/main/src/native): `src/native`

### PS4 platform

- [Platform binding](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_platform_bind_ps4.c): `src/native/pw_platform_bind_ps4.c`
- [Video output](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_videoout_ps4.c): `src/native/pw_videoout_ps4.c`
- [Vulkan driver](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_vulkan_radv_ps4.c): `src/native/pw_vulkan_radv_ps4.c`
- [Controller input](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_pad_ps4.c): `src/native/pw_pad_ps4.c`
- [Audio output](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_audio_ps4.c): `src/native/pw_audio_ps4.c`
- [Network control](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_netctl_ps4.c): `src/native/pw_netctl_ps4.c`
- [On-screen keyboard](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_osk_ps4.c): `src/native/pw_osk_ps4.c`
- [Direct memory](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_wine_dmem_glue_ps4.c): `src/native/pw_wine_dmem_glue_ps4.c`
- [Wine heap backing](https://github.com/plastikman/orbis-win/blob/main/src/native/pw_wineserver_heap_ps4.c): `src/native/pw_wineserver_heap_ps4.c`

### Native diagnostics

- [Presenter probe](https://github.com/plastikman/orbis-win/blob/main/src/present-test/main.c): `src/present-test/main.c`
- [Controller map](https://github.com/plastikman/orbis-win/blob/main/src/controller-map/main.c): `src/controller-map/main.c`
- [Input viewers](https://github.com/plastikman/orbis-win/tree/main/src/input-viewer): `src/input-viewer`

### Other components

- **Player**
- **Linux PC / VM**
- **GoldHEN FTP**

## Connections

- Linux PC / VM → Game and prefix: prepares prefix (evidence: `README.md`)
- Linux PC / VM → Game profiles: configures game (evidence: `README.md`)
- Linux PC / VM → GoldHEN FTP: transfers files (evidence: `README.md`)
- GoldHEN FTP → Game and prefix: uploads prefix (evidence: `README.md`)
- GoldHEN FTP → Game profiles: uploads profile (evidence: `README.md`)
- Player → Game launcher: selects game (evidence: `README.md`)
- Game launcher → Wine runtime: launches game (evidence: `README.md`)
- Wine runtime → Platform binding: uses PS4 layer (evidence: `src/native/pw_platform_bind_ps4.c`)
- Platform binding → Video output: provides display
- Platform binding → Controller input: provides input
- Platform binding → Audio output: provides audio
- Platform binding → Network control: provides networking
- Platform binding → On-screen keyboard: provides keyboard
- Wine runtime → Vulkan driver: renders graphics
- Wine runtime → Direct memory: maps guest memory (evidence: `src/native/pw_wine_dmem_glue_ps4.c`)
- Direct memory → Wine heap backing: backs heap (evidence: `src/native/pw_wine_dmem_glue_ps4.c`)
- Presenter probe → Video output: tests output (evidence: `src/present-test/main.c`)
- Controller map → Controller input: reads controller (evidence: `src/controller-map/main.c`)
- Controller map → Video output: draws display (evidence: `src/controller-map/main.c`)
- Input viewers → Player: shows input state
