Documentation
¶
Overview ¶
Package libretro is a small libretro frontend: it loads a core (a shared library the user installed), runs it one frame at a time and hands back raw video and audio. It uses no cgo, so one Go toolchain builds it everywhere.
This package is only linked into wittyplay-host, the separate sandboxed process that runs a game. The server never loads a core itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core is a loaded libretro core. A process holds at most one, because the libretro API is one set of global callbacks per library.
func Load ¶
Load opens a core and starts it. Call this, and everything else on Core, from one locked OS thread.
func (*Core) LoadGame ¶
LoadGame gives the core a game. The file is read here only when the core wants it in memory.
func (*Core) SaveState ¶
SaveState returns a snapshot of the machine, or nil when the core has none.
func (*Core) SystemInfo ¶
func (c *Core) SystemInfo() engine.SystemInfo
SystemInfo asks the core about itself.