batocera

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HomeDir is hardcoded because home in env is not set at the point which
	// the service file is called to start.
	HomeDir   = "/userdata/system"
	DataDir   = HomeDir + "/.local/share/" + config.AppName
	ConfigDir = HomeDir + "/.config/" + config.AppName
)

Variables

View Source
var LauncherMap = map[string]string{}/* 239 elements not displayed */
View Source
var SystemMap = map[string]SystemInfo{}/* 239 elements not displayed */

Functions

This section is empty.

Types

type Platform

type Platform struct {
	// contains filtered or unexported fields
}

func (*Platform) ForwardCmd

func (*Platform) ForwardCmd(env *platforms.CmdEnv) (platforms.CmdResult, error)

func (*Platform) GamepadPress

func (p *Platform) GamepadPress(name string) error

func (*Platform) ID

func (*Platform) ID() string

func (*Platform) KeyboardPress

func (p *Platform) KeyboardPress(name string) error

func (*Platform) LaunchMedia

func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher) error

func (*Platform) LaunchSystem

func (*Platform) LaunchSystem(_ *config.Instance, _ string) error

func (*Platform) Launchers

func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher

func (*Platform) LookupMapping

func (*Platform) LookupMapping(_ *tokens.Token) (string, bool)

func (*Platform) NormalizePath

func (p *Platform) NormalizePath(cfg *config.Instance, path string) string

func (*Platform) PlayAudio

func (p *Platform) PlayAudio(path string) error

func (*Platform) RootDirs

func (*Platform) RootDirs(cfg *config.Instance) []string

func (*Platform) ScanHook

func (*Platform) ScanHook(_ *tokens.Token) error

func (*Platform) SetTrackedProcess added in v2.6.1

func (p *Platform) SetTrackedProcess(proc *os.Process)

func (*Platform) Settings

func (*Platform) Settings() platforms.Settings

func (*Platform) ShowLoader

func (*Platform) ShowLoader(
	_ *config.Instance,
	args widgetmodels.NoticeArgs,
) (func() error, error)

func (*Platform) ShowNotice

func (*Platform) ShowNotice(
	_ *config.Instance,
	args widgetmodels.NoticeArgs,
) (func() error, time.Duration, error)

func (*Platform) ShowPicker

func (*Platform) ShowPicker(
	_ *config.Instance,
	_ widgetmodels.PickerArgs,
) error

func (*Platform) StartPost

func (p *Platform) StartPost(
	cfg *config.Instance,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
) error

func (*Platform) StartPre

func (p *Platform) StartPre(_ *config.Instance) error

func (*Platform) Stop

func (p *Platform) Stop() error

func (*Platform) StopActiveLauncher

func (p *Platform) StopActiveLauncher() error

func (*Platform) SupportedReaders

func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader

type SystemInfo

type SystemInfo struct {
	SystemID   string
	Extensions []string
}

Jump to

Keyboard shortcuts

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