How gracioni/geranes works
GeraNES is a cross-platform, cycle-accurate NES/Famicom emulator with desktop, Android, web, and libretro entry points, plus room-based netplay. The principal workflow is to load a game, emulate it and its peripherals, then present audio/video and persist or enhance play with features such as save states, rewind, patches, and visual mods. The graph preserves documented capabilities, but many app-to-core and netplay runtime links are only indicated as unverified because their implementation was not sampled.
Main entry points: GeraNESEmu.h Console Emulator · GeraNESApp.cpp Emulator UI · main.cpp App Entry · GeraNESLibretro.cpp Libretro Core
Components 23
App and Frontends
- App Entry
src/main.cpp - Emulator UI
src/GeraNESApp/GeraNESApp.cpp - Input Handling
src/GeraNESApp/InputManager.cpp - Libretro Core
src/libretro/GeraNESLibretro.cpp
Emulation Core
- Console Emulator
src/GeraNES/GeraNESEmu.h - CPU
src/GeraNES/CPU2A03.h - PPU
src/GeraNES/PPU.h - Audio Unit
src/GeraNES/APU/APU.h - Cartridge and Mappers
src/GeraNES/Cartridge.h - Controllers and Peripherals
src/GeraNES/IControllerPortDevice.h
Content and Enhancements
- ROM and Patch Loading
src/GeraNES/RomFile.h - Game Database
src/GeraNES/GameDatabase.h - Visual Mods
src/GeraNESApp/ModManager.cpp
Playback Features
- State Serialization
src/GeraNES/Serialization.h - Save States and Rewind
src/GeraNES/Rewind.h - Replay
src/GeraNESApp/ReplaySession.cpp
Room Netplay
- Netplay Room UI
src/GeraNESNetplay/NetplayWindowUI.cpp - Netplay Runtime
src/GeraNESNetplay/GeraNESNetplayRuntimeDriver.cpp - Session Coordination
src/ConsoleNetplay/NetplayCoordinator.cpp - WebRTC Signaling
src/ConsoleNetplay/WebRtcSignalingClient.cpp
Other components
- Player
- Other Players
- Signaling Service
Connections 25
- Player → App Entry: starts
src/main.cpp - App Entry → Emulator UI: creates and runs
src/main.cpp - Player → Libretro Core: loads core
- Emulator UI → Input Handling: collects controls
- Emulator UI → Console Emulator: drives emulation
- Libretro Core → Console Emulator: runs emulation
src/libretro/GeraNESLibretro.cpp - Console Emulator → CPU: uses
src/GeraNES/GeraNESEmu.h - Console Emulator → PPU: uses
src/GeraNES/GeraNESEmu.h - Console Emulator → Audio Unit: uses
src/GeraNES/GeraNESEmu.h - Console Emulator → Cartridge and Mappers: uses
src/GeraNES/GeraNESEmu.h - Console Emulator → Controllers and Peripherals: uses
src/GeraNES/GeraNESEmu.h - Console Emulator → State Serialization: serializes state
src/GeraNES/GeraNESEmu.h - Player → ROM and Patch Loading: opens game
- ROM and Patch Loading → Console Emulator: loads content
- Console Emulator → Game Database: consults metadata
- Player → Visual Mods: loads visual mods
- Visual Mods → PPU: enhances rendering
- Player → Save States and Rewind: saves or rewinds
- Player → Replay: plays replay
- Player → Netplay Room UI: joins room
- Netplay Room UI → Netplay Runtime: controls session
- Netplay Runtime → Session Coordination: coordinates play
- Session Coordination → WebRTC Signaling: signals peers
- WebRTC Signaling → Signaling Service: exchanges signaling
- Signaling Service → Other Players: connects players