core

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-3.0 Imports: 18 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.

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, m MenuInterface)

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

type MenuInterface interface {
	ContextReset()
}

MenuInterface allows passing a *menu.Menu to the core package while avoiding cyclic dependencies.

Jump to

Keyboard shortcuts

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