platform

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultSteamRoot      = "~/.local/share/steam/Steam"
	DefaultTF2Root        = "~/.local/share/steam/Steam/steamapps/common/Team Fortress 2/tf"
	BinaryName            = "hl2"
	TF2RootValidationFile = "bin/client.so"
)

Functions

func IsGameRunning

func IsGameRunning() (bool, error)

func LaunchTF2

func LaunchTF2(logger *zap.Logger, _ string, args []string) error

LaunchTF2 calls the steam binary directly On linux args may overflow the allowed length. This will often be 512chars as it's based on the stack size

func OpenFolder

func OpenFolder(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL