How nyx2sw/xc2recomp works
XC2Recomp is a Windows launcher and runtime for Xenoblade Chronicles 2: Switch 2 Edition. The main workflow is selecting a user-provided NUP dump, preparing the base game and included add-ons, then launching the installed game. The launcher also manages graphics and shader preparation, updates, saves, resource packs, Steam shortcuts, and play presence. The graph follows evidenced launcher wiring; several runtime and optional integration links are left unverified because their callers were not shown.
Main entry points: Backend.cs Command backend · Program.cs Launcher startup · SetupPipeline.cs Setup pipeline · GameRunner.cs Game runner
Components 25
Launcher experience
- Launcher startup
launcher/App/Program.cs - WebView host
launcher/App/Host/WinHost.cs - UI content
launcher/App/Content.cs - Launcher UI
launcher/ui/app.js - Command backend
launcher/App/Backend.cs - Launcher config
launcher/Core/LauncherConfig.cs
Game setup
- Setup pipeline
launcher/Core/SetupPipeline.cs - NUP archive
launcher/Core/NupArchive.cs - Install inspection
launcher/Core/GameInstall.cs
Install management
- DLSS download
launcher/Core/DlssDownloader.cs - Launcher updater
launcher/Core/LauncherUpdater.cs - Save management
launcher/Core/SaveManager.cs - Save parser
launcher/Core/SaveParser.cs - Resource packs
launcher/Core/ModManager.cs - Steam integration
launcher/Core/SteamIntegration.cs - Game audio
launcher/Core/GameAudio.cs - Game artwork
launcher/Core/GameArtwork.cs
Game runtime
- Game runner
launcher/Core/GameRunner.cs - Game settings
launcher/Core/IniSettings.cs - In-game PC menu
extensions/native_ui/native_menu.c - Play presence
extensions/presence/presence.c - Shader catalog
launcher/Core/ShaderCatalogBuilder.cs
Other components
- Player
- User game dump
- Installed game
Connections 32
- Player → Launcher startup: opens
README.md - Launcher startup → WebView host: creates
launcher/App/Program.cs - Launcher startup → UI content: creates
launcher/App/Program.cs - Launcher startup → Command backend: creates
launcher/App/Program.cs - Launcher startup → Launcher updater: checks startup
launcher/App/Program.cs - WebView host → UI content: serves
launcher/App/Host/WinHost.cs - Player → Launcher UI: configures
- Command backend → Launcher config: loads settings
launcher/App/Backend.cs - Command backend → Install inspection: inspects install
launcher/App/Backend.cs - Command backend → Game runner: builds launch plan
launcher/App/Backend.cs - Command backend → Save management: manages saves
launcher/App/Backend.cs - Command backend → Resource packs: manages packs
launcher/App/Backend.cs - Command backend → Steam integration: discovers accounts
launcher/App/Backend.cs - Command backend → DLSS download: starts download
launcher/App/Backend.cs - Command backend → Shader catalog: prepares shaders
launcher/App/Backend.cs - Command backend → Game audio: loads tracks
launcher/App/Backend.cs - Command backend → Game artwork: loads artwork
launcher/App/Backend.cs - Player → User game dump: provides dump
README.md - User game dump → Setup pipeline: sets up game
README.md - Setup pipeline → NUP archive: extracts packages
launcher/Core/SetupPipeline.cs - Setup pipeline → Install inspection: prepares install
launcher/Core/SetupPipeline.cs - Setup pipeline → Installed game: produces install
README.md - Command backend → Setup pipeline: starts setup
- Game runner → Game settings: reads settings
launcher/Core/GameRunner.cs - Game runner → Installed game: launches
- Installed game → In-game PC menu: hosts menu
- Installed game → Play presence: reports play
- Command backend → Launcher updater: updates install
launcher/App/Backend.cs - Command backend → Save management: imports or backs up
launcher/App/Backend.cs - Save management → Save parser: parses saves
launcher/Core/SaveManager.cs - Command backend → Game settings: reads pack selection
launcher/App/Backend.cs - Resource packs → Game settings: writes pack selection
launcher/Core/ModManager.cs