How hezhixin15/dlss5-swapper-chinese works
DLSS 5 Swapper is an Electron desktop app for finding games and installing or managing DLSS 5 rendering components; this edition adds Chinese localization, a tutorial, update checks, and cache cleaning. The main workflow is game discovery → scan and route selection → install with tracked backups, or restore originals. The graph includes documented community and in-game overlay capabilities. Some wiring is based on the app’s documented responsibilities because the supplied source excerpts are partial.
Main entry points: main.js App and IPC · renderer.js Main interface · backend-manager.js Backend manager · apply.js Install and restore
Components 21
Desktop app
- App and IPC
main.js - Renderer bridge
preload.js - Main interface
src/renderer/renderer.js - Translations
src/shared/feature-i18n.js - Tutorial
src/renderer/tutorial.js
Game discovery
- Game library
src/library.js - Game scanner
src/core/scan.js - Compatibility checks
src/core/compatibility.js - Install route policy
src/shared/install-routes.js
Install and restore
- Backend manager
src/core/backend-manager.js - Install and restore
src/core/apply.js - File journal
src/core/file-journal.js - OptiScaler route
src/core/optiscaler.js
In-game overlay
- Overlay interface
src/renderer/overlay-surface.js - Overlay bridge
src/overlay-bridge.js - Native game overlay
overlay/overlay.cpp
Community features
- Community interface
src/renderer/community.js - Community client
src/community-client.js
Other components
- Player
- Game files
- Community service
Connections 26
- Player → Main interface: uses
- Main interface → Renderer bridge: requests actions
- Renderer bridge → App and IPC: invokes IPC
- App and IPC → Game library: finds games
- Game library → Game files: reads launcher data
- App and IPC → Game scanner: scans games
- Game scanner → Game files: inspects files
- App and IPC → Compatibility checks: checks compatibility
- App and IPC → Install route policy: chooses route
- App and IPC → Backend manager: installs or restores
- Backend manager → Install and restore: applies swap
- Backend manager → OptiScaler route: installs route
- Install and restore → File journal: tracks file changes
- Install and restore → Game files: writes game files
- File journal → Game files: backs up and restores
- Main interface → Translations: loads strings
- Main interface → Tutorial: opens tutorial
- Main interface → Overlay interface: configures overlay
- Overlay interface → Overlay bridge: sends preferences
- Overlay bridge → Native game overlay: exchanges commands
- Native game overlay → Game files: runs in game
- Main interface → Community interface: opens community
- Community interface → Renderer bridge: requests community data
- App and IPC → Community client: handles community requests
- Community client → Community service: requests data
- App and IPC → Game files: cleans cache