Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello World Core

Source: examples/hello-libretro

The hello example is the first smoke-test core. It demonstrates:

  • a cdylib package,
  • Core plus export_core!,
  • no-game startup,
  • fixed 320x240 / 60 FPS / 48 kHz AV info,
  • a solid blue default-format software frame,
  • silent stereo audio.

The source intentionally stays tiny. For the reusable minimal lifecycle, use examples/software-libretro, which keeps frame/audio buffers in core state and applies its content contract consistently to metadata and the environment.

Tutorial: Hello World Core.