How stenzek/duckstation works
DuckStation is a PlayStation emulator whose main user journey is selecting a game in a frontend, configuring or supplying BIOS and input, running the emulated system, and presenting video and audio. The graph preserves major README capabilities as product subsystems, including disc loading, rendering, controller input, save states, achievements, and alternate UI. Source excerpts cover only a few controllers, audio effects, and graphics pipelines, so most subsystem connections are shown as unverified rather than asserted as inspected call paths.
Main entry points: system.h Emulated system · qthost.h Qt frontend · imgui.h Fullscreen UI · analog_controller.cpp Controller input
Components 19
User interfaces
- Qt frontend
src/duckstation-qt/qthost.h - Fullscreen UI
dep/imgui/include/imgui.h
Emulation runtime
- Emulated system
src/core/system.h - CPU execution
src/core - Disc and game loading
src/core - Controller input
src/core/analog_controller.cpp - Configuration
src/core/settings.h
Media and output
- Hardware rendering
src/util/opengl_pipeline.cpp - Direct3D 11
src/util/d3d11_pipeline.cpp - Direct3D 12
src/util/d3d12_pipeline.cpp - Audio effects
src/core/sound_effect_manager.cpp
Player features
- Save states
src/util/state_wrapper.h - RetroAchievements
dep/rcheevos/src/rc_client.c - Patches and cheats
src/core - Debug and memory tools
src/core
External services
- Host operating system
- Achievements service
- Game media
Other components
- Player
Connections 19
- Player → Qt frontend: selects game
README.md - Player → Fullscreen UI: uses interface
README.md - Qt frontend → Emulated system: starts emulation
- Fullscreen UI → Emulated system: starts emulation
- Emulated system → Disc and game loading: loads game
README.md - Game media → Disc and game loading: provides content
README.md - Emulated system → CPU execution: executes instructions
README.md - Emulated system → Controller input: reads input
src/core/analog_controller.cpp - Controller input → Host operating system: sets vibration
src/core/analog_controller.cpp - Emulated system → Hardware rendering: renders graphics
README.md - Emulated system → Direct3D 11: renders graphics
README.md - Emulated system → Direct3D 12: renders graphics
README.md - Emulated system → Audio effects: produces audio
README.md - Qt frontend → Configuration: configures
- Emulated system → Save states: serializes state
README.md - Emulated system → Patches and cheats: applies enhancements
README.md - Emulated system → Debug and memory tools: exposes tools
README.md - Emulated system → RetroAchievements: updates achievements
README.md - RetroAchievements → Achievements service: uses service
README.md