core

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: GPL-3.0 Imports: 19 Imported by: 4

Documentation

Overview

Package core takes care of instanciating the libretro core, setting the input, audio, video, environment callbacks needed to play the games. It also deals with core options and persisting SRAM periodically.

Index

Constants

This section is empty.

Variables

View Source
var Options *options.Options

Options holds the settings for the current core

Functions

func Init

func Init(v *video.Video)

Init is there mainly for dependency injection. Call Init before calling other functions of this package.

func Load

func Load(sofile string) error

Load loads a libretro core

func LoadGame

func LoadGame(gamePath string) error

LoadGame loads a game. A core has to be loaded first.

func Unload added in v0.2.2

func Unload()

Unload unloads a libretro core

func UnloadGame added in v0.2.2

func UnloadGame()

UnloadGame unloads a game.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL