lib

package
v0.0.0-...-da4d551 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AudioLibrary

func AudioLibrary(name string) func(n *nesInternal.GoNes) error

func AudioLogging

func AudioLogging(log bool) func(n *nesInternal.GoNes) error

func CartPath

func CartPath(path string) func(n *nesInternal.GoNes) error

func FreeRun

func FreeRun(freeRun bool) func(n *nesInternal.GoNes) error

func SpriteLimit

func SpriteLimit(limit bool) func(n *nesInternal.GoNes) error

func Verbose

func Verbose(verbose bool) func(n *nesInternal.GoNes) error

Types

type GoNes

type GoNes interface {
	// Runs the emulator (blocking)
	Run()
	// Requests to...
	Stop()
	Reset()
	// Save/Load the full state of the emulator
	// (excluding some settings like audio library and logging verbosity)
	Save()
	Load()
}

func NewNES

func NewNES(options ...func(n *nesInternal.GoNes) error) GoNes

Example usage:

nes := gones.NewNES(
	gones.CartPath("rom.nes"),
	gones.Verbose(false),
	gones.AudioLibrary("portaudio"),
)

Directories

Path Synopsis
apu

Jump to

Keyboard shortcuts

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