options

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package options deals with configuration at the libretro core level. Each core exports a list of variables that can take different values. This package can list them, load them, and save them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Vars    []libretro.Variable
	Choices []int
	Updated bool
}

Options is a container type for core options internals

func New

func New(vars []libretro.Variable) *Options

New instanciate a core options manager

func (*Options) NumChoices

func (o *Options) NumChoices(choiceIndex int) int

NumChoices returns the number of choices for a given variable

func (*Options) Save

func (o *Options) Save() error

Save core options to a file

Jump to

Keyboard shortcuts

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