# gerisson1996/gow-collection-nx architecture

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

- Interactive diagram: https://gitdiagram.com/gerisson1996/gow-collection-nx
- Repository: https://github.com/gerisson1996/gow-collection-nx

## Overview

This repository is the Nintendo Switch port layer and launcher for statically recompiled God of War and God of War II; the game binaries and vitaRT runtime are not included. The user opens the launcher, chooses a game, and the launcher loads its NRO; that game runs through Switch-specific platform services for controls, audio, graphics, options, and SD data. The README documents these capabilities, while the excerpts show launcher dispatch, input/menu behavior, and platform/module responsibilities. Several runtime implementation links are documented rather than directly visible in sampled calls.

Main entry points: [`launcher/main.c`](https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/main.c) (Game launcher), [`platform/nx/nx_platform.cpp`](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_platform.cpp) (NX platform core), [`launcher/updater.c`](https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/updater.c) (Release updater), [`platform/nx/nx_modules.cpp`](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_modules.cpp) (Linked game modules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and Updates"]
  node_launcher["Game launcher<br/>[main.c]"]
  node_updater["Release updater<br/>[updater.c]"]
end

subgraph group_runtime["Game Runtime"]
  node_game_nro["Selected game NRO"]
  node_vita_modules["Linked game modules<br/>[nx_modules.cpp]"]
end

subgraph group_platform["Switch Platform"]
  node_platform_core["NX platform core<br/>[nx_platform.cpp]"]
  node_compat["Vita compatibility<br/>[windows.h]"]
  node_window["Switch window<br/>[gxm_window_nx.cpp]"]
end

subgraph group_services["Game Services"]
  node_input["Controller mapping<br/>[host_input_nx.cpp]"]
  node_audio["Switch audio<br/>[host_audio_nx.cpp]"]
  node_graphics["GXM to Vulkan<br/>[video_hd_nx.cpp]"]
  node_pause_menu["Pause options menu<br/>[nx_menu.cpp]"]
  node_sd_data[("SD saves and options")]
end

node_user(("Switch user"))
node_switch(("Nintendo Switch"))
node_release_service(("GitHub Releases"))

node_user -->|"opens"| node_launcher
node_launcher -->|"loads selected"| node_game_nro
node_game_nro -.->|"runs modules"| node_vita_modules
node_vita_modules -.->|"uses platform"| node_platform_core
node_platform_core -.->|"provides compatibility"| node_compat
node_game_nro -.->|"reads controls"| node_input
node_game_nro -.->|"outputs audio"| node_audio
node_game_nro -.->|"renders through"| node_graphics
node_game_nro -.->|"presents on"| node_window
node_game_nro -.->|"opens options"| node_pause_menu
node_pause_menu -->|"reads controls"| node_input
node_game_nro -.->|"reads and writes"| node_sd_data
node_launcher -->|"stores settings"| node_sd_data
node_launcher -->|"checks and installs"| node_updater
node_updater -->|"fetches releases"| node_release_service
node_platform_core -.->|"uses system services"| node_switch

click node_launcher "https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/main.c"
click node_updater "https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/updater.c"
click node_vita_modules "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_modules.cpp"
click node_platform_core "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_platform.cpp"
click node_compat "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/shim/windows.h"
click node_window "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/gxm_window_nx.cpp"
click node_input "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/host_input_nx.cpp"
click node_audio "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/host_audio_nx.cpp"
click node_graphics "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/video_hd_nx.cpp"
click node_pause_menu "https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_menu.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_updater,node_user toneBlue
class node_game_nro,node_vita_modules toneAmber
class node_platform_core,node_compat,node_window toneMint
class node_input,node_audio,node_graphics,node_pause_menu,node_sd_data toneRose
class node_switch,node_release_service toneIndigo
```

## Components

### Launch and Updates

- [Game launcher](https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/main.c): `launcher/main.c`
- [Release updater](https://github.com/gerisson1996/gow-collection-nx/blob/main/launcher/updater.c): `launcher/updater.c`

### Game Runtime

- **Selected game NRO**
- [Linked game modules](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_modules.cpp): `platform/nx/nx_modules.cpp`

### Switch Platform

- [NX platform core](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_platform.cpp): `platform/nx/nx_platform.cpp`
- [Vita compatibility](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/shim/windows.h): `platform/nx/shim/windows.h`
- [Switch window](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/gxm_window_nx.cpp): `platform/nx/gxm_window_nx.cpp`

### Game Services

- [Controller mapping](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/host_input_nx.cpp): `platform/nx/host_input_nx.cpp`
- [Switch audio](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/host_audio_nx.cpp): `platform/nx/host_audio_nx.cpp`
- [GXM to Vulkan](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/video_hd_nx.cpp): `platform/nx/video_hd_nx.cpp`
- [Pause options menu](https://github.com/gerisson1996/gow-collection-nx/blob/main/platform/nx/nx_menu.cpp): `platform/nx/nx_menu.cpp`
- **SD saves and options**

### Other components

- **Switch user**
- **Nintendo Switch**
- **GitHub Releases**

## Connections

- Switch user → Game launcher: opens (evidence: `README.md`)
- Game launcher → Selected game NRO: loads selected (evidence: `launcher/main.c`)
- Selected game NRO → Linked game modules: runs modules
- Linked game modules → NX platform core: uses platform
- NX platform core → Vita compatibility: provides compatibility
- Selected game NRO → Controller mapping: reads controls (evidence: `README.md`)
- Selected game NRO → Switch audio: outputs audio (evidence: `README.md`)
- Selected game NRO → GXM to Vulkan: renders through (evidence: `README.md`)
- Selected game NRO → Switch window: presents on (evidence: `README.md`)
- Selected game NRO → Pause options menu: opens options (evidence: `README.md`)
- Pause options menu → Controller mapping: reads controls (evidence: `platform/nx/host_input_nx.cpp`)
- Selected game NRO → SD saves and options: reads and writes (evidence: `README.md`)
- Game launcher → SD saves and options: stores settings (evidence: `launcher/main.c`)
- Game launcher → Release updater: checks and installs (evidence: `launcher/main.c`)
- Release updater → GitHub Releases: fetches releases (evidence: `launcher/updater.c`)
- NX platform core → Nintendo Switch: uses system services (evidence: `README.md`)
