config

package
v0.0.0-...-d71a987 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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 SystemsConfig struct {
	GamesFolder []string `ini:"games_folder,omitempty,allowshadow"`
	SetCore     []string `ini:"set_core,omitempty,allowshadow"`
}

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)

Jump to

Keyboard shortcuts

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