Documentation
¶
Index ¶
- func NewHeroicLauncher() platforms.Launcher
- func NewLutrisLauncher() platforms.Launcher
- func NewSteamLauncher() platforms.Launcher
- func ScanHeroicGames(storeCacheDir string) ([]platforms.ScanResult, error)
- func ScanLutrisGames(dbPath string) ([]platforms.ScanResult, error)
- type Platform
- func (*Platform) ConsoleManager() platforms.ConsoleManager
- func (*Platform) ForwardCmd(_ *platforms.CmdEnv) (platforms.CmdResult, error)
- func (*Platform) GamepadPress(_ string) error
- func (*Platform) ID() string
- func (*Platform) KeyboardPress(_ string) error
- func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher, ...) error
- func (*Platform) LaunchSystem(_ *config.Instance, _ string) error
- func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher
- func (*Platform) LookupMapping(_ *tokens.Token) (string, bool)
- func (*Platform) ReturnToMenu() error
- func (*Platform) RootDirs(cfg *config.Instance) []string
- func (*Platform) ScanHook(_ *tokens.Token) error
- func (p *Platform) SetTrackedProcess(proc *os.Process)
- func (*Platform) Settings() platforms.Settings
- func (*Platform) ShowLoader(_ *config.Instance, _ widgetmodels.NoticeArgs) (func() error, error)
- func (*Platform) ShowNotice(_ *config.Instance, _ widgetmodels.NoticeArgs) (func() error, time.Duration, error)
- func (*Platform) ShowPicker(_ *config.Instance, _ widgetmodels.PickerArgs) error
- func (p *Platform) StartPost(_ *config.Instance, launcherManager platforms.LauncherContextManager, ...) error
- func (*Platform) StartPre(_ *config.Instance) error
- func (*Platform) Stop() error
- func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHeroicLauncher ¶ added in v2.7.0
NewHeroicLauncher creates a launcher for Heroic Games Launcher
func NewLutrisLauncher ¶ added in v2.7.0
NewLutrisLauncher creates a launcher for Lutris games
func NewSteamLauncher ¶ added in v2.7.0
NewSteamLauncher creates a launcher for Steam games
func ScanHeroicGames ¶ added in v2.7.0
func ScanHeroicGames(storeCacheDir string) ([]platforms.ScanResult, error)
ScanHeroicGames scans Heroic Games Launcher library files for installed games
func ScanLutrisGames ¶ added in v2.7.0
func ScanLutrisGames(dbPath string) ([]platforms.ScanResult, error)
ScanLutrisGames scans the Lutris pga.db SQLite database for installed games
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) ConsoleManager ¶ added in v2.7.0
func (*Platform) ConsoleManager() platforms.ConsoleManager
func (*Platform) ForwardCmd ¶
func (*Platform) GamepadPress ¶
func (*Platform) KeyboardPress ¶
func (*Platform) LaunchMedia ¶
func (*Platform) ReturnToMenu ¶ added in v2.7.0
func (*Platform) SetTrackedProcess ¶ added in v2.6.1
func (*Platform) ShowLoader ¶
func (*Platform) ShowLoader( _ *config.Instance, _ widgetmodels.NoticeArgs, ) (func() error, error)
func (*Platform) ShowNotice ¶
func (*Platform) ShowNotice( _ *config.Instance, _ widgetmodels.NoticeArgs, ) (func() error, time.Duration, error)
func (*Platform) ShowPicker ¶
func (*Platform) ShowPicker( _ *config.Instance, _ widgetmodels.PickerArgs, ) error
func (*Platform) StartPost ¶
func (p *Platform) StartPost( _ *config.Instance, launcherManager platforms.LauncherContextManager, activeMedia func() *models.ActiveMedia, setActiveMedia func(*models.ActiveMedia), _ *database.Database, ) error
func (*Platform) StopActiveLauncher ¶
func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
Click to show internal directories.
Click to hide internal directories.