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
- type Platform
- func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher, ...) error
- func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher
- func (p *Platform) ReturnToMenu() error
- func (p *Platform) RootDirs(cfg *config.Instance) []string
- func (*Platform) Settings() platforms.Settings
- func (p *Platform) StartPost(ctx context.Context, cfg *config.Instance, ...) error
- func (p *Platform) Stop() error
- func (p *Platform) StopActiveLauncher(intent platforms.StopIntent) error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
- func (p *Platform) WaitTrackedProcess(proc *os.Process) error
Constants ¶
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 ¶
Platform implements platforms.Platform for ArkOS.
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 ¶
Launchers returns one launcher per ES system Zaparoo knows, built from es_systems.cfg, plus custom and generic launchers.
func (*Platform) ReturnToMenu ¶
ReturnToMenu stops the running game, which returns to ES.
func (*Platform) RootDirs ¶
RootDirs returns configured index roots plus the ROM partitions present.
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) 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 ¶
SupportedReaders returns the standard Linux reader set.