mister

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: 43 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Launchers = []platforms.Launcher{}/* 138 elements not displayed */

Functions

func LoadCsvMappings

func LoadCsvMappings() (uids, texts map[string]string, err error)

func NormalizePath

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

func StartCsvMappingsWatcher

func StartCsvMappingsWatcher(
	getLoadTime func() time.Time,
	setMappings func(map[string]string, map[string]string),
) (func() error, error)

Types

type CsvMappingEntry

type CsvMappingEntry struct {
	MatchUID  string `csv:"match_uid"`
	MatchText string `csv:"match_text"`
	Text      string `csv:"text"`
}

type Platform

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

func NewPlatform

func NewPlatform() *Platform

func (*Platform) ForwardCmd

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

func (*Platform) GamepadPress

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

func (*Platform) GetDBLoadTime

func (p *Platform) GetDBLoadTime() time.Time

func (*Platform) ID

func (*Platform) ID() string

func (*Platform) KeyboardPress

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

func (*Platform) LaunchMedia

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

func (*Platform) LaunchSystem

func (p *Platform) LaunchSystem(cfg *config.Instance, id string) error

func (*Platform) Launchers

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

func (*Platform) LookupMapping

func (p *Platform) LookupMapping(t *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 (p *Platform) ScanHook(token *tokens.Token) error

func (*Platform) SetDB

func (p *Platform) SetDB(uidMap, textMap map[string]string)

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 (p *Platform) ShowLoader(
	cfg *config.Instance,
	args widgetmodels.NoticeArgs,
) (func() error, error)

func (*Platform) ShowNotice

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

func (*Platform) ShowPicker

func (p *Platform) ShowPicker(
	cfg *config.Instance,
	args 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 Romset

type Romset struct {
	Name    string `xml:"name,attr"`
	AltName string `xml:"altname,attr"`
}

type Romsets

type Romsets struct {
	XMLName xml.Name `xml:"romsets"`
	Romsets []Romset `xml:"romset"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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