Documentation
¶
Index ¶
Constants ¶
View Source
const VERSION = "v1.2.1"
Variables ¶
View Source
var Conf, _ = GetConfig()
Functions ¶
func GetConfigMain
deprecated
added in
v1.1.0
func GetConfigPath ¶
func GetConfigPathGame ¶
func GetConfigPathMain ¶ added in v1.2.0
func SaveConfig ¶ added in v1.2.0
Types ¶
type Config ¶ added in v1.2.0
type Config struct {
Paths struct{ Main, Games string } // The paths to the config files
Main struct {
Version string `json:"version"` // SWkshp version
FileReadBuffer int `json:"buf"` // How many bytes in buffers for reading files
}
Games map[string]string // The paths to the games
}
var DefaultConfig *Config
func GetConfigDefault ¶ added in v1.2.0
func GetConfigDefault() *Config
Click to show internal directories.
Click to hide internal directories.