emulator

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

type Emulator struct {
	Scale       int
	AspectRatio struct {
		Keep   bool
		Width  int
		Height int
	}
	Storage  string
	Libretro LibretroConfig
}

func (Emulator) GetEmulator added in v2.6.1

func (e Emulator) GetEmulator(rom string, path string) string

GetEmulator tries to find a suitable emulator. !to remove quadratic complexity

func (Emulator) GetLibretroCoreConfig

func (e Emulator) GetLibretroCoreConfig(emulator string) LibretroCoreConfig

GetLibretroCoreConfig returns a core config with expanded paths.

func (Emulator) GetSupportedExtensions

func (e Emulator) GetSupportedExtensions() []string

type LibretroConfig

type LibretroConfig struct {
	Cores struct {
		Paths struct {
			Libs    string
			Configs string
		}
		Repo struct {
			Sync      bool
			ExtLock   string
			Main      LibretroRepoConfig
			Secondary LibretroRepoConfig
		}
		List map[string]LibretroCoreConfig
	}
}

func (*LibretroConfig) GetCores

func (l *LibretroConfig) GetCores() []string

func (*LibretroConfig) GetCoresStorePath

func (l *LibretroConfig) GetCoresStorePath() string

type LibretroCoreConfig

type LibretroCoreConfig struct {
	Lib         string
	Config      string
	Roms        []string
	Folder      string
	Width       int
	Height      int
	Ratio       float64
	IsGlAllowed bool
	UsesLibCo   bool
	HasMultitap bool

	// hack: keep it here to pass it down the emulator
	AutoGlContext bool
}

type LibretroRepoConfig added in v2.5.0

type LibretroRepoConfig struct {
	Type        string
	Url         string
	Compression string
}

Jump to

Keyboard shortcuts

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