batocera

package
v2.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: GPL-3.0 Imports: 13 Imported by: 1 module, 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

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
	LogDir    = DataDir + "/" + config.LogsDir
	// ESConfigDir is the EmulationStation config directory on Batocera.
	ESConfigDir = "/userdata/system/configs/emulationstation"
	// ROMRoot is Batocera's default ROM directory.
	ROMRoot = "/userdata/roms"
)

Variables

This section is empty.

Functions

func BackupDefinitions added in v2.23.0

func BackupDefinitions(root string) []platforms.BackupDefinition

BackupDefinitions returns the restore allow-list rooted at root: everything BackupPlan collects plus the policy for any Windows prefix under roms/windows, so a prefix that exists only on the destination still restores.

func BackupPlan added in v2.23.0

func BackupPlan(root, mountsPath string) platforms.BackupPlan

BackupPlan walks the durable roots under root, the gamelist in each system folder and the Windows prefixes found under roms/windows. Saves on a network share listed in mountsPath are still collected, with a warning.

func Options added in v2.23.0

func Options() *esbase.Options

Options describes Batocera to the shared EmulationStation platform.

func UpdatePayload added in v2.17.0

func UpdatePayload() []updatepayload.File

UpdatePayload lists the platform-owned files an update installs alongside the binary. The list itself lives in the payload subpackage so build tooling can read it without compiling this one.

Types

type Platform

type Platform struct {
	*esbase.Platform
}

Platform is Batocera.

func NewPlatform added in v2.23.0

func NewPlatform() *Platform

NewPlatform returns the Batocera platform.

func (*Platform) BackupDefinitions added in v2.23.0

func (*Platform) BackupDefinitions() []platforms.BackupDefinition

BackupDefinitions returns the restore allow-list for /userdata.

func (*Platform) BackupPlan added in v2.23.0

func (*Platform) BackupPlan() platforms.BackupPlan

BackupPlan returns the collection plan for /userdata.

func (*Platform) BackupRestoreRoot added in v2.23.0

func (*Platform) BackupRestoreRoot() string

BackupRestoreRoot anchors every Batocera restore path under /userdata.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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