# mihawk-99/ps5_mihawkos architecture

> Architecture diagram of the GitHub repository mihawk-99/ps5_mihawkos, 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/mihawk-99/ps5_mihawkos
- Repository: https://github.com/mihawk-99/ps5_mihawkos

## Overview

MihawkOS combines a PS5-native launcher and desktop with a Wine/GE-Proton runtime for Windows games. The main user journey is selecting or installing a game, launching it through the PS5 title into Wine, and returning to the desktop or Steam Big Picture after play. The README also documents WebUI game management, save handling, settings, and tiles. Several subsystem links below reflect README-level capability descriptions; unsampled implementation details are not asserted.

Main entry points: [`wine/wineps5/unix.c`](https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/wineps5/unix.c) (Wine / Proton), [`src/pw_webui.cpp`](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_webui.cpp) (WebUI), [`ps5/src/proton_launch.cpp`](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_launch.cpp) (Game Launch), [`ps5/src/main.cpp`](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/main.cpp) (PS5 Title)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["PS5 Entry"]
  node_title["PS5 Title<br/>[main.cpp]"]
  node_launch["Game Launch<br/>[proton_launch.cpp]"]
  node_updates["Runtime Updates<br/>[proton_update.cpp]"]
end

subgraph group_runtime["Windows Runtime"]
  node_wine["Wine / Proton<br/>[unix.c]"]
  node_ps5wine["PS5 Wine Adapters"]
  node_gpu["Vulkan Graphics<br/>[pw_vulkan_radv.c]"]
  node_controller["Controller Choice<br/>[pw_controller.c]"]
end

subgraph group_shell["Desktop and Play"]
  node_desktop["Desktop Shell<br/>[pw_shell_start.c]"]
  node_explorer["File Explorer"]
  node_gameplay["Game Mode<br/>[pw_title_play.c]"]
  node_steam["Steam<br/>[pw_steam.c]"]
end

subgraph group_companion["Companion Services"]
  node_webui["WebUI<br/>[pw_webui.cpp]"]
  node_webclient["Web Companion UI<br/>[app.js]"]
  node_tiles["Home Tiles<br/>[worker.c]"]
  node_install["Game Install<br/>[proton_install.cpp]"]
  node_saves["Save Backup<br/>[pw_webui.cpp]"]
end

node_user(("Player"))

node_user -->|"opens"| node_title
node_title -->|"starts"| node_launch
node_launch -.->|"launches"| node_wine
node_wine -.->|"uses adapters"| node_ps5wine
node_wine -->|"renders through"| node_gpu
node_wine -->|"exposes input"| node_controller
node_user -->|"opens"| node_desktop
node_desktop -->|"includes"| node_explorer
node_user -->|"selects game"| node_gameplay
node_gameplay -.->|"launches"| node_launch
node_user -->|"plays through"| node_steam
node_steam -->|"starts game"| node_launch
node_user -->|"manages games"| node_webclient
node_webclient -.->|"sends requests"| node_webui
node_webui -->|"fetches games"| node_install
node_webui -->|"backs up"| node_saves
node_webui -->|"marks tiles"| node_tiles
node_user -->|"updates runtime"| node_updates

click node_title "https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/main.cpp"
click node_launch "https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_launch.cpp"
click node_wine "https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/wineps5/unix.c"
click node_ps5wine "https://github.com/mihawk-99/ps5_mihawkos/tree/main/wine/ps5"
click node_gpu "https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_vulkan_radv.c"
click node_controller "https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_controller.c"
click node_desktop "https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_shell_start.c"
click node_explorer "https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_shell_explorer.h"
click node_gameplay "https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_title_play.c"
click node_steam "https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_steam.c"
click node_webui "https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_webui.cpp"
click node_webclient "https://github.com/mihawk-99/ps5_mihawkos/blob/main/webui/app.js"
click node_tiles "https://github.com/mihawk-99/ps5_mihawkos/blob/main/forwarder/worker.c"
click node_install "https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_install.cpp"
click node_updates "https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_update.cpp"
click node_saves "https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_webui.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_title,node_launch,node_updates toneBlue
class node_wine,node_ps5wine,node_gpu,node_controller toneAmber
class node_desktop,node_explorer,node_gameplay,node_steam toneMint
class node_webui,node_webclient,node_tiles,node_install,node_saves toneRose
class node_user toneIndigo
```

## Components

### PS5 Entry

- [PS5 Title](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/main.cpp): `ps5/src/main.cpp`
- [Game Launch](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_launch.cpp): `ps5/src/proton_launch.cpp`
- [Runtime Updates](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_update.cpp): `ps5/src/proton_update.cpp`

### Windows Runtime

- [Wine / Proton](https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/wineps5/unix.c): `wine/wineps5/unix.c`
- [PS5 Wine Adapters](https://github.com/mihawk-99/ps5_mihawkos/tree/main/wine/ps5): `wine/ps5`
- [Vulkan Graphics](https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_vulkan_radv.c): `wine/ps5/pw_vulkan_radv.c`
- [Controller Choice](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_controller.c): `src/pw_controller.c`

### Desktop and Play

- [Desktop Shell](https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_shell_start.c): `wine/ps5/pw_shell_start.c`
- [File Explorer](https://github.com/mihawk-99/ps5_mihawkos/blob/main/wine/ps5/pw_shell_explorer.h): `wine/ps5/pw_shell_explorer.h`
- [Game Mode](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_title_play.c): `src/pw_title_play.c`
- [Steam](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_steam.c): `src/pw_steam.c`

### Companion Services

- [WebUI](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_webui.cpp): `src/pw_webui.cpp`
- [Web Companion UI](https://github.com/mihawk-99/ps5_mihawkos/blob/main/webui/app.js): `webui/app.js`
- [Home Tiles](https://github.com/mihawk-99/ps5_mihawkos/blob/main/forwarder/worker.c): `forwarder/worker.c`
- [Game Install](https://github.com/mihawk-99/ps5_mihawkos/blob/main/ps5/src/proton_install.cpp): `ps5/src/proton_install.cpp`
- [Save Backup](https://github.com/mihawk-99/ps5_mihawkos/blob/main/src/pw_webui.cpp): `src/pw_webui.cpp`

### Other components

- **Player**

## Connections

- Player → PS5 Title: opens
- PS5 Title → Game Launch: starts (evidence: `ps5/src/main.cpp`)
- Game Launch → Wine / Proton: launches
- Wine / Proton → PS5 Wine Adapters: uses adapters
- Wine / Proton → Vulkan Graphics: renders through
- Wine / Proton → Controller Choice: exposes input
- Player → Desktop Shell: opens
- Desktop Shell → File Explorer: includes
- Player → Game Mode: selects game
- Game Mode → Game Launch: launches
- Player → Steam: plays through
- Steam → Game Launch: starts game
- Player → Web Companion UI: manages games
- Web Companion UI → WebUI: sends requests
- WebUI → Game Install: fetches games
- WebUI → Save Backup: backs up
- WebUI → Home Tiles: marks tiles (evidence: `forwarder/worker.c`)
- Player → Runtime Updates: updates runtime
