How dazacode/vilauncher works
VILauncher is a cross-platform desktop launcher for community game projects. The user browses or imports a project, installs or updates it, then launches it using game files already on their PC. The Rust backend coordinates project operations and exposes snapshots/actions to the React interface. Other documented capabilities include diagnostics and fixes, rollback, saves, graphics and launch presets, shader warm-up, storage management, and reporting. Several subsystems are unsampled; those branches reflect README descriptions, not inspected implementation details.
Main entry points: launcher.rs Launcher commands · App.tsx App shell · store.ts UI state store · library-view.tsx Project library
Components 28
Desktop interface
- App shell
src/App.tsx - Project library
src/features/library/library-view.tsx - Settings UI
src/features/settings/settings-view.tsx - Project dialogs
src/features/dialogs/dialogs.tsx - Backend API
src/lib/api.ts - UI state store
src/lib/store.ts
Project lifecycle
- Launcher commands
src-tauri/src/launcher.rs - Action dispatch
src-tauri/src/launcher/actions.rs - Rust project builds
src-tauri/src/rust_project.rs - ZIP projects
src-tauri/src/build_zip.rs - Rollback builds
src-tauri/src/previous.rs
Play and diagnostics
- Problem diagnosis
src-tauri/src/diagnose.rs - Problem fixes
src-tauri/src/known_problems.rs - Game runner
src-tauri/src/runner.rs - Shader warm-up
src-tauri/src/shader_cache.rs - Session statistics
src-tauri/src/play_stats.rs - Problem reports
src-tauri/src/report.rs
Settings and data
- Save management
src-tauri/src/saves.rs - Save archives
src-tauri/src/save_zip.rs - Launch presets
src-tauri/src/script_preset.rs - Disk usage
src-tauri/src/storage.rs
Platform services
- Build tools
src-tauri/src/tools.rs - System information
src-tauri/src/system.rs - OS integration
src-tauri/src/platform/mod.rs
Other components
- Player
- VIPortLive catalog
- User game files
- GitHub issues
Connections 32
- Player → App shell: uses
src/App.tsx - App shell → Project library: shows
src/App.tsx - App shell → Settings UI: shows
src/App.tsx - App shell → Project dialogs: mounts
src/App.tsx - App shell → Backend API: subscribes via
src/App.tsx - App shell → UI state store: refreshes via
src/App.tsx - Project library → UI state store: dispatches actions
- Settings UI → UI state store: dispatches actions
- Project dialogs → UI state store: dispatches actions
src/features/dialogs/dialogs.tsx - UI state store → Backend API: sends actions
src/lib/store.ts - Backend API → Action dispatch: invokes command
- Action dispatch → Launcher commands: dispatches to
src-tauri/src/launcher/actions.rs - Launcher commands → Rust project builds: builds Rust projects
src-tauri/src/launcher.rs - Launcher commands → ZIP projects: handles ZIP projects
src-tauri/src/launcher.rs - Launcher commands → Rollback builds: keeps prior build
src-tauri/src/launcher.rs - VIPortLive catalog → Project library: lists projects
README.md - Launcher commands → VIPortLive catalog: loads projects
README.md - Launcher commands → Build tools: sets up tools
README.md - Launcher commands → Problem diagnosis: checks before play
src-tauri/src/launcher.rs - Problem diagnosis → Problem fixes: checks known issues
src-tauri/src/known_problems.rs - Launcher commands → Game runner: starts builds
README.md - User game files → Game runner: provides required files
README.md - Launcher commands → Shader warm-up: warms shaders
README.md - Game runner → Session statistics: records session
README.md - Launcher commands → Problem reports: prepares failed-job report
README.md - Problem reports → GitHub issues: opens issue draft
README.md - Launcher commands → Save management: manages saves
README.md - Save management → Save archives: imports or exports
README.md - Launcher commands → Launch presets: applies launch presets
README.md - Launcher commands → Disk usage: scans disk usage
src-tauri/src/storage.rs - Launcher commands → System information: reads PC specs
README.md - Launcher commands → OS integration: uses OS integration
src-tauri/src/launcher.rs