# mcmrarm/mc-w10-version-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/mcmrarm/mc-w10-version-launcher
- Repository: https://github.com/mcmrarm/mc-w10-version-launcher

## Overview

MCLauncher manages side-by-side Minecraft: Windows 10 Edition versions. The main workflow is to load available or imported versions, download and install a selection, and launch or manage installed versions. Supporting code handles Windows Update downloads and account tokens; the GDK shim supports game activation and protocol handling. The README also documents beta/release installation and cleanup. Some relationships are only documented at a high level; the graph avoids inferring links from unsampled code.

Main entry points: [`MCLauncher/MainWindow.xaml.cs`](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/MainWindow.xaml.cs) (Launcher window), [`MCLauncher/VersionDownloader.cs`](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionDownloader.cs) (Version downloader), [`MCLauncher/VersionList.cs`](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionList.cs) (Version catalog), [`MCLauncher/WUProtocol.cs`](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/WUProtocol.cs) (Update protocol)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher management"]
  node_window["Launcher window<br/>[MainWindow.xaml.cs]"]
  node_preferences["Preferences<br/>[Preferences.cs]"]
  node_commands["UI commands<br/>[RelayCommand.cs]"]
  node_links["Deep links<br/>[LinkResolver.cs]"]
end

subgraph group_versions["Version acquisition"]
  node_version_catalog[("Version catalog<br/>[VersionList.cs]")]
  node_downloader["Version downloader"]
  node_wu_protocol["Update protocol<br/>[WUProtocol.cs]"]
end

subgraph group_auth["Update authorization"]
  node_token_client["Token client<br/>[WUTokenHelper.cs]"]
  node_token_helper["Token broker<br/>[main.cpp]"]
end

subgraph group_gdk["GDK runtime"]
  node_gdk_shim["GDK launch shim<br/>[GDKLaunchShim.cpp]"]
  node_xml_parser["TinyXML parser<br/>[tinyxml2.cpp]"]
  node_decrypt_helper["Executable copy helper"]
end

node_user(("User"))
node_microsoft_account{{"Microsoft account services"}}
node_microsoft_update{{"Windows Update"}}

node_user -->|"uses"| node_window
node_window -->|"manages versions"| node_version_catalog
node_window -->|"reads settings"| node_preferences
node_window -->|"uses commands"| node_commands
node_window -->|"resolves links"| node_links
node_window -->|"downloads packages"| node_downloader
node_window -->|"installs shim"| node_gdk_shim
node_version_catalog -->|"fetches version data"| node_microsoft_update
node_downloader -->|"builds requests"| node_wu_protocol
node_downloader -->|"requests token"| node_token_client
node_wu_protocol -->|"posts update requests"| node_microsoft_update
node_token_client -->|"calls native helper"| node_token_helper
node_token_helper -->|"fetches account token"| node_microsoft_account
node_gdk_shim -->|"parses game config"| node_xml_parser

click node_window "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/MainWindow.xaml.cs"
click node_preferences "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/Preferences.cs"
click node_commands "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/RelayCommand.cs"
click node_links "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/LinkResolver.cs"
click node_version_catalog "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionList.cs"
click node_downloader "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionDownloader.cs"
click node_wu_protocol "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/WUProtocol.cs"
click node_token_client "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/WUTokenHelper.cs"
click node_token_helper "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/WUTokenHelper/main.cpp"
click node_gdk_shim "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKLaunchShim/GDKLaunchShim.cpp"
click node_xml_parser "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKLaunchShim/tinyxml/tinyxml2.cpp"
click node_decrypt_helper "https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKDecryptHelper/GDKDecryptHelper.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_window,node_preferences,node_commands,node_links,node_user toneBlue
class node_version_catalog,node_downloader,node_wu_protocol toneAmber
class node_token_client,node_token_helper toneMint
class node_gdk_shim,node_xml_parser,node_decrypt_helper toneRose
class node_microsoft_account,node_microsoft_update toneIndigo
```

## Components

### Launcher management

- [Launcher window](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/MainWindow.xaml.cs): `MCLauncher/MainWindow.xaml.cs`
- [Preferences](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/Preferences.cs): `MCLauncher/Preferences.cs`
- [UI commands](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/RelayCommand.cs): `MCLauncher/RelayCommand.cs`
- [Deep links](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/LinkResolver.cs): `MCLauncher/LinkResolver.cs`

### Version acquisition

- [Version catalog](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionList.cs): `MCLauncher/VersionList.cs`
- [Version downloader](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/VersionDownloader.cs): `MCLauncher/VersionDownloader.cs`
- [Update protocol](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/WUProtocol.cs): `MCLauncher/WUProtocol.cs`

### Update authorization

- [Token client](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/MCLauncher/WUTokenHelper.cs): `MCLauncher/WUTokenHelper.cs`
- [Token broker](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/WUTokenHelper/main.cpp): `WUTokenHelper/main.cpp`

### GDK runtime

- [GDK launch shim](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKLaunchShim/GDKLaunchShim.cpp): `GDKLaunchShim/GDKLaunchShim.cpp`
- [TinyXML parser](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKLaunchShim/tinyxml/tinyxml2.cpp): `GDKLaunchShim/tinyxml/tinyxml2.cpp`
- [Executable copy helper](https://github.com/mcmrarm/mc-w10-version-launcher/blob/master/GDKDecryptHelper/GDKDecryptHelper.cpp): `GDKDecryptHelper/GDKDecryptHelper.cpp`

### Other components

- **User**
- **Microsoft account services**
- **Windows Update**

## Connections

- User → Launcher window: uses (evidence: `README.md`)
- Launcher window → Version catalog: manages versions (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Launcher window → Preferences: reads settings (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Launcher window → UI commands: uses commands (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Launcher window → Deep links: resolves links (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Launcher window → Version downloader: downloads packages (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Launcher window → GDK launch shim: installs shim (evidence: `MCLauncher/MainWindow.xaml.cs`)
- Version catalog → Windows Update: fetches version data (evidence: `MCLauncher/VersionList.cs`)
- Version downloader → Update protocol: builds requests (evidence: `MCLauncher/VersionDownloader.cs`)
- Version downloader → Token client: requests token (evidence: `MCLauncher/VersionDownloader.cs`)
- Update protocol → Windows Update: posts update requests
- Token client → Token broker: calls native helper (evidence: `MCLauncher/WUTokenHelper.cs`)
- Token broker → Microsoft account services: fetches account token (evidence: `WUTokenHelper/main.cpp`)
- GDK launch shim → TinyXML parser: parses game config (evidence: `GDKLaunchShim/GDKLaunchShim.cpp`)
