tracker

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ArcadeSystem = "Arcade"

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(path string) string

Convert a launchable path to an absolute path.

func StartFileWatch

func StartFileWatch(tr *Tracker) (*fsnotify.Watcher, error)

StartFileWatch Start thread for monitoring changes to all files relating to core/game launches.

Types

type NameMapping

type NameMapping struct {
	CoreName   string
	System     string
	Name       string // TODO: use names.txt
	ArcadeName string
}

type Tracker

type Tracker struct {
	ActiveSystemName string
	ActiveSystem     string
	ActiveGameID     string
	ActiveGameName   string
	ActiveGamePath   string
	ActiveCore       string
	NameMap          []NameMapping
	// contains filtered or unexported fields
}

func NewTracker

func NewTracker(
	pl platforms.Platform,
	cfg *config.Instance,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
	db *database.Database,
) (*Tracker, error)

func StartTracker

func StartTracker(
	cfg *config.Instance,
	pl platforms.Platform,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
	db *database.Database,
) (*Tracker, func() error, error)

func (*Tracker) LoadCore

func (tr *Tracker) LoadCore()

LoadCore loads the current running core and set it as active.

func (*Tracker) LookupCoreName

func (tr *Tracker) LookupCoreName(name string) *NameMapping

func (*Tracker) ReloadNameMap

func (tr *Tracker) ReloadNameMap()

func (*Tracker) StopAll

func (tr *Tracker) StopAll()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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