How libretro/genesis-plus-gx works
Genesis Plus GX is a portable Sega 8/16-bit emulator, exposed through platform frontends such as libretro, SDL, and GameCube/Wii. The primary workflow is to load a game, run the selected emulated system, and present its audio/video while accepting controller input; save states and cartridge/CD hardware extend that workflow. The graph preserves major hardware and frontend capabilities from the README and tree. Internal links are limited to relationships shown in excerpts or documented by the README; unsampled subsystem wiring is not assumed.
Main entry points: system.c System Runtime · genesis.c Console Control · main.c GX Game Loop · libretro.c Libretro Frontend
Components 22
Platform Frontends
- Libretro Frontend
libretro/libretro.c - SDL Frontend
sdl/sdl2/main.c - GameCube/Wii Frontend
gx/main.c - SDL Game Loop
sdl/sdl2/main.c - GX Game Loop
gx/main.c - GX File Selection
gx/fileio/file_slot.c - GX Menus
gx/gui/menu.c
Emulation Runtime
- System Runtime
core/system.c - Console Control
core/genesis.c - M68000 CPU
core/m68k/m68kcpu.c - Z80 CPU
core/z80/z80.c - Memory Mapping
core/mem68k.c - Video Rendering
core/vdp_render.c - Audio Synthesis
core/sound/sound.c - NTSC Filters
core/ntsc/md_ntsc.c
System Hardware
- Input Devices
core/input_hw/input.c - Cartridge Hardware
core/cart_hw/md_cart.c - 8-bit Cartridge
core/cart_hw/sms_cart.c - CD Hardware
core/cd_hw/scd.c
Media And State
- ROM Loading
core/loadrom.c - Save States
core/state.c
Other components
- Player
Connections 23
- Player → Libretro Frontend: uses
- Player → SDL Frontend: uses
- Player → GameCube/Wii Frontend: uses
- SDL Frontend → SDL Game Loop: runs
sdl/sdl2/main.c - SDL Game Loop → System Runtime: advances frames
sdl/sdl2/main.c - GameCube/Wii Frontend → GX Game Loop: starts
gx/main.c - GX Game Loop → System Runtime: advances frames
gx/main.c - Libretro Frontend → System Runtime: runs emulation
- GX File Selection → GX Menus: opens selection
gx/fileio/file_slot.c - GX Game Loop → GX File Selection: loads games
- System Runtime → Console Control: dispatches runtime
- Console Control → M68000 CPU: runs CPU
- Console Control → Z80 CPU: runs CPU
- Console Control → Memory Mapping: uses mappings
- System Runtime → Video Rendering: renders frames
- System Runtime → Audio Synthesis: generates audio
- System Runtime → Input Devices: reads controls
- System Runtime → Cartridge Hardware: supports hardware
- System Runtime → 8-bit Cartridge: supports hardware
- System Runtime → CD Hardware: supports CD
- System Runtime → ROM Loading: loads software
- System Runtime → Save States: saves state
- Video Rendering → NTSC Filters: filters output