core

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: GPL-3.0 Imports: 17 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

This section is empty.

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(filename string) error

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

Types

type MenuInterface interface {
	ContextReset()
	UpdateOptions(*options.Options)
}

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