Documentation
¶
Index ¶
Constants ¶
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 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 ¶
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
BackupRestoreRoot anchors every Batocera restore path under /userdata.