Documentation
¶
Index ¶
- func IsInvocation(path string) bool
- func Run(ctx context.Context) error
- func Uninstall() error
- type Broker
- func (b *Broker) Available() bool
- func (b *Broker) Clear(pid int) bool
- func (b *Broker) HasActive() bool
- func (b *Broker) Owns(pid int) bool
- func (b *Broker) Start(ctx context.Context, spec *Command) (*os.Process, error)
- func (b *Broker) Stop(ctx context.Context) error
- func (b *Broker) Wait(ctx context.Context, pid int) error
- type Command
- type InstallPaths
- type InstallResult
- type StatusResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvocation ¶
IsInvocation reports whether this process was started through the Runtime symlink.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker coordinates Steam-owned Runtime sessions for Core launches.
func NewBroker ¶
func NewBroker() *Broker
NewBroker creates a Broker using the installed Runtime shortcut.
func (*Broker) Clear ¶
Clear removes the tracked session for pid. It returns true only when pid is the latest Runtime launch, allowing callers to decide whether active-media cleanup is still required.
type Command ¶
type Command struct {
Executable string `json:"executable"`
Dir string `json:"dir,omitempty"`
LaunchID string `json:"launchId"`
Args []string `json:"args,omitempty"`
Env []string `json:"env,omitempty"`
Version int `json:"version"`
}
Command describes one emulator process for Steam Runtime to own.
type InstallPaths ¶
type InstallPaths struct {
FS afero.Fs
Binary string
Runtime string
Desktop string
SteamDir string
}
func DefaultInstallPaths ¶
func DefaultInstallPaths() *InstallPaths
type InstallResult ¶
type StatusResult ¶
type StatusResult struct {
State string
RuntimePath string
DesktopPath string
ShortcutIDs []uint64
}
func Status ¶
func Status() (StatusResult, error)
Click to show internal directories.
Click to hide internal directories.