How webosbrew/retroarch works
RetroArch is the reference frontend for the libretro API. Its main workflow is to launch a libretro core, manage its lifecycle, and route the core’s audio, video, and input callbacks to platform-facing drivers. The README also documents shaders, rewind, recording, run-ahead, playlists, and achievements, so these appear as supporting capabilities. The tree and excerpts establish component locations, but provide little direct wiring evidence for the main runtime; those links are marked unverified rather than presented as inspected calls.
Main entry points: retroarch.h RetroArch Frontend · core.h Libretro Core · menu_driver.h Menu UI · content.h Content Loading
Components 19
Frontend Lifecycle
- RetroArch Frontend
retroarch.h - Configuration
configuration.c - Menu UI
menu/menu_driver.h - Libretro Core
core.h
Platform I/O
- Video Output
gfx - Audio Output
audio/audio_driver.c - Input Drivers
input/input_driver.h - Shader Pipeline
gfx/drivers/gl_shaders
Core and Library Management
- Content Loading
content.h - Core Metadata
core_info.h - Playlists
tasks/task_playlist_manager.c
Runtime Features
- Rewind and States
state_manager.c - Video Recording
tasks - Run-Ahead
runloop.h - Cheat Manager
cheat_manager.c
Metadata and Services
- Achievements
cheevos/cheevos.c - Game Database
libretro-db/query.c
Other components
- Player
- Achievement Service
Connections 20
- Player → RetroArch Frontend: uses
- RetroArch Frontend → Libretro Core: loads core
- RetroArch Frontend → Configuration: reads settings
- RetroArch Frontend → Menu UI: presents UI
- Menu UI → Content Loading: selects content
- Content Loading → Libretro Core: provides content
- Libretro Core → RetroArch Frontend: sends callbacks
- RetroArch Frontend → Video Output: routes video
- RetroArch Frontend → Audio Output: routes audio
- RetroArch Frontend → Input Drivers: routes input
- RetroArch Frontend → Core Metadata: queries metadata
- RetroArch Frontend → Playlists: manages playlists
- RetroArch Frontend → Shader Pipeline: applies shaders
- RetroArch Frontend → Rewind and States: supports rewind
- RetroArch Frontend → Video Recording: supports recording
- RetroArch Frontend → Run-Ahead: supports run-ahead
- RetroArch Frontend → Cheat Manager: manages cheats
cheat_manager.c - RetroArch Frontend → Achievements: tracks achievements
- Achievements → Achievement Service: uses service
- RetroArch Frontend → Game Database: queries metadata