config

package
v0.0.0-...-95e8c34 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetXdgCacheHome

func GetXdgCacheHome() string

func GetXdgDataHome

func GetXdgDataHome() string

func GetXdgStateHome

func GetXdgStateHome() string

func ParseFlags

func ParseFlags() (debugPort string, serverPort string, skipPatching bool, dataDir string, pluginsDir string, logsDir string, cacheDir string, steamPath string, cleanup bool, noCache bool)

Types

type CrksftConfig

type CrksftConfig struct {
	InstalledAutostart bool
	Plugins            map[string]CrksftConfigPlugin `toml:"plugins"`
	// contains filtered or unexported fields
}

func NewCrksftConfig

func NewCrksftConfig(dataDir string) (*CrksftConfig, bool, error)

func (*CrksftConfig) UpdatePlugin

func (c *CrksftConfig) UpdatePlugin(pluginId string, newConfig CrksftConfigPlugin) error

func (*CrksftConfig) Write

func (c *CrksftConfig) Write() error

type CrksftConfigPlugin

type CrksftConfigPlugin struct {
	Enabled bool `toml:"enabled"`
}

Jump to

Keyboard shortcuts

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