arkos

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: GPL-3.0 Imports: 42 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

Overview

Package arkos implements ArkOS, dArkOS and arkos4clone handhelds, where EmulationStation-fcamod is the frontend and has no API: Core stops ES, runs the game with the command ES would use, and starts ES again afterwards.

Index

Constants

View Source
const InstallDir = "/home/ark/.config/zaparoo"

InstallDir holds the binary, config, database and logs. It sits beside the other per-app configs in the frontend user's home, which ArkOS updates leave alone.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform struct {
	*linuxbase.Base
	// contains filtered or unexported fields
}

Platform implements platforms.Platform for ArkOS.

func NewPlatform

func NewPlatform() *Platform

NewPlatform creates an ArkOS platform.

func (*Platform) LaunchMedia

func (p *Platform) LaunchMedia(
	cfg *config.Instance,
	path string,
	launcher *platforms.Launcher,
	db *database.Database,
	opts *platforms.LaunchOptions,
) error

LaunchMedia launches media and makes sure ES is running again if the launch stopped it but nothing is left running.

func (*Platform) Launchers

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

Launchers returns one launcher per ES system Zaparoo knows, built from es_systems.cfg, plus custom and generic launchers.

func (*Platform) ReturnToMenu

func (p *Platform) ReturnToMenu() error

ReturnToMenu stops the running game, which returns to ES.

func (*Platform) RootDirs

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

RootDirs returns configured index roots plus the ROM partitions present.

func (*Platform) Settings

func (*Platform) Settings() platforms.Settings

Settings keeps everything in InstallDir.

func (*Platform) StartPost

func (p *Platform) StartPost(
	ctx context.Context,
	cfg *config.Instance,
	launcherManager platforms.LauncherContextManager,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
	db *database.Database,
	scheduler *idle.Scheduler,
) error

StartPost restores ES if a previous run left it stopped, then watches for games ES launches itself.

func (*Platform) Stop

func (p *Platform) Stop() error

Stop ends a game Core started and gives the display back to ES.

func (*Platform) StopActiveLauncher

func (p *Platform) StopActiveLauncher(intent platforms.StopIntent) error

StopActiveLauncher stops the running game, whether Core or ES started it. ES resumes by itself when its own game ends; for Core's games ES is started once the game has exited, unless a replacement launch is under way.

func (*Platform) SupportedReaders

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

SupportedReaders returns the standard Linux reader set.

func (*Platform) WaitTrackedProcess

func (p *Platform) WaitTrackedProcess(proc *os.Process) error

WaitTrackedProcess reaps a game Core started and then lets ES come back.

Jump to

Keyboard shortcuts

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