Documentation
¶
Rendered for windows/amd64
Index ¶
- type LaunchBoxPipeServer
- func (s *LaunchBoxPipeServer) IsConnected() bool
- func (s *LaunchBoxPipeServer) LaunchGame(gameID string) error
- func (s *LaunchBoxPipeServer) SetGameExitedHandler(handler func(id, title string))
- func (s *LaunchBoxPipeServer) SetGameStartedHandler(handler func(id, title, platform, path string))
- func (s *LaunchBoxPipeServer) SetWriteRequestHandler(handler func(id, title, platform string))
- func (s *LaunchBoxPipeServer) Start() error
- func (s *LaunchBoxPipeServer) Stop()
- 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 (p *Platform) NewLaunchBoxLauncher() platforms.Launcher
- 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(cfg *config.Instance, _ platforms.LauncherContextManager, ...) error
- func (*Platform) StartPre(_ *config.Instance) error
- func (p *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 ¶
This section is empty.
Types ¶
type LaunchBoxPipeServer ¶ added in v2.7.0
type LaunchBoxPipeServer struct {
// contains filtered or unexported fields
}
LaunchBoxPipeServer manages named pipe communication with the LaunchBox plugin
func NewLaunchBoxPipeServer ¶ added in v2.7.0
func NewLaunchBoxPipeServer() *LaunchBoxPipeServer
NewLaunchBoxPipeServer creates a new named pipe server
func (*LaunchBoxPipeServer) IsConnected ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) IsConnected() bool
IsConnected returns true if the LaunchBox plugin is connected
func (*LaunchBoxPipeServer) LaunchGame ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) LaunchGame(gameID string) error
LaunchGame sends a launch command to the LaunchBox plugin
func (*LaunchBoxPipeServer) SetGameExitedHandler ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) SetGameExitedHandler(handler func(id, title string))
SetGameExitedHandler sets the callback for game exited events
func (*LaunchBoxPipeServer) SetGameStartedHandler ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) SetGameStartedHandler(handler func(id, title, platform, path string))
SetGameStartedHandler sets the callback for game started events
func (*LaunchBoxPipeServer) SetWriteRequestHandler ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) SetWriteRequestHandler(handler func(id, title, platform string))
SetWriteRequestHandler sets the callback for write request events
func (*LaunchBoxPipeServer) Start ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) Start() error
Start begins listening for LaunchBox plugin connections
func (*LaunchBoxPipeServer) Stop ¶ added in v2.7.0
func (s *LaunchBoxPipeServer) Stop()
Stop gracefully shuts down the pipe server
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) NewLaunchBoxLauncher ¶ added in v2.7.0
NewLaunchBoxLauncher creates the LaunchBox launcher
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( cfg *config.Instance, _ 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.