How eglantine-community/eglantine works
Eglantine is a cross-platform Switch 2 emulator. Its user-facing goal is to select game content, launch it, emulate the console, and present rendered output with audio and input. The tree also shows content/firmware management, controller support, system-service emulation, graphics backends, and Android and Qt frontends. The excerpts expose only a few concrete connections, so the graph leaves most subsystem relationships unconnected rather than assuming a call chain; several capabilities are represented by their source files without inferred wiring.
Main entry points: bootmanager.cpp Qt frontend · NativeLibrary.kt Android frontend · core.h Emulation core · global_memory_to_storage_buffer_pass.cpp Shader optimization
Components 19
User frontends
- Qt frontend
src/yuzu/bootmanager.cpp - Android frontend
src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt - Qt controller UI
src/yuzu/applets/qt_controller.cpp - GPU driver management
src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/DriverManagerFragment.kt
Content management
- Content manager
src/frontend_common/content_manager.h - Firmware manager
src/frontend_common/firmware_manager.cpp - Compressed storage
src/core/file_sys/fssystem/fssystem_compressed_storage.h
Console emulation
- Emulation core
src/core/core.h - Play statistics service
src/core/hle/service/ns/query_service.cpp - Remote storage service
src/core/hle/service/olsc/remote_storage_controller.cpp - Play-time tracking
src/frontend_common/play_time_manager.cpp
Graphics
- OpenGL pipelines
src/video_core/renderer_opengl/gl_graphics_pipeline.cpp - Vulkan pipeline cache
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Shader optimization
src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp - GPU uploads
src/video_core/engines/engine_upload.cpp
Input and audio
- Emulated controllers
src/hid_core/frontend/emulated_controller.cpp - Input engine
src/input_common/input_engine.cpp - Audio renderer
src/audio_core/renderer/system_manager.cpp
Other components
- Player
Connections 11
- Player → Qt frontend: uses
- Player → Android frontend: uses
- Qt frontend → Emulation core: starts emulation
src/yuzu/bootmanager.cpp - Android frontend → Emulation core: starts emulation
- Content manager → Emulation core: references core
src/frontend_common/content_manager.h - Play statistics service → Play-time tracking: queries statistics
src/core/hle/service/ns/query_service.cpp - Qt frontend → Player: signals lifecycle
src/yuzu/bootmanager.cpp - Qt controller UI → Emulated controllers: uses controller API
src/yuzu/applets/qt_controller.cpp - OpenGL pipelines → Shader optimization: uses shader IR
- Vulkan pipeline cache → Shader optimization: uses shader IR
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp - GPU driver management → Android frontend: manages drivers
src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/DriverManagerFragment.kt