Documentation
¶
Index ¶
- 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 (*Platform) Settings() platforms.Settings
- func (p *Platform) StartPost(cfg *config.Instance, launcherManager platforms.LauncherContextManager, ...) error
- func (p *Platform) Stop() error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
Platform implements the Bazzite gaming platform. Bazzite is a Fedora Atomic distro with extensive gaming optimizations, pre-installed Steam and Lutris, and Heroic available via Flatpak.
func NewPlatform ¶ added in v2.8.0
func NewPlatform() *Platform
NewPlatform creates a new Bazzite platform instance.
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 using the appropriate launcher.
func (*Platform) Launchers ¶
Launchers returns the available launchers for Bazzite. Bazzite supports Steam (native/Flatpak), Lutris (pre-installed), Heroic (Flatpak via Bazaar), WebBrowser, and Generic scripts.
func (*Platform) StartPost ¶
func (p *Platform) StartPost( cfg *config.Instance, launcherManager platforms.LauncherContextManager, activeMedia func() *models.ActiveMedia, setActiveMedia func(*models.ActiveMedia), db *database.Database, ) error
StartPost initializes the platform after service startup. Starts the game tracker to monitor Steam game lifecycle.
Click to show internal directories.
Click to hide internal directories.