Documentation ¶
Index ¶
Constants ¶
View Source
const UserAppPathEnv = "TAPTO_APP_PATH"
View Source
const UserConfigEnv = "TAPTO_CONFIG"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemsConfig ¶
type TapToConfig ¶
type TapToConfig struct { ConnectionString string `ini:"connection_string,omitempty"` AllowCommands bool `ini:"allow_commands,omitempty"` DisableSounds bool `ini:"disable_sounds,omitempty"` ProbeDevice bool `ini:"probe_device,omitempty"` ExitGame bool `ini:"exit_game,omitempty"` ExitGameBlocklist []string `ini:"exit_game_blocklist,omitempty"` Debug bool `ini:"debug,omitempty"` }
type UserConfig ¶
type UserConfig struct { AppPath string IniPath string TapTo TapToConfig `ini:"tapto,omitempty"` Systems SystemsConfig `ini:"systems,omitempty"` }
func LoadUserConfig ¶
func LoadUserConfig(name string, defaultConfig *UserConfig) (*UserConfig, error)
Click to show internal directories.
Click to hide internal directories.