Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultSteamStoreAPI = "https://store.steampowered.com/api" DefaultSteamWebAPI = "https://api.steampowered.com" DefaultGithubAPIURL = "https://api.github.com/repos/Detanup01/gbe_fork/releases/latest" DefaultSteamlessGithubAPI = "https://api.github.com/repos/staernid/steamless-rs/releases/latest" )
Default URL & Path Constants
Variables ¶
View Source
var PlatformConfig = map[string]struct { Subdir, Target, Additional, Generator, Arch string }{ "linux": { Subdir: "linux_release", Target: "libsteam_api.so", Additional: "steamclient.so", Generator: "generate_interfaces_x64", Arch: "64", }, "win64": { Subdir: "win_release", Target: "steam_api64.dll", Additional: "steamclient64.dll", Generator: "generate_interfaces_x64.exe", Arch: "64", }, "win32": { Subdir: "win_release", Target: "steam_api.dll", Additional: "steamclient.dll", Generator: "generate_interfaces_x32.exe", Arch: "32", }, }
PlatformConfig maps platform names to their configuration.
Functions ¶
func GetConfigPath ¶ added in v1.0.109
GetConfigPath returns the absolute path to the configuration file.
func InitConfig ¶
InitConfig initializes the configuration or loads it from a file.
func SaveConfig ¶ added in v1.0.107
SaveConfig writes a Config struct cleanly to a JSON file on disk.
Types ¶
type Config ¶ added in v0.4.0
type Config struct {
// Paths
GbeDir string `json:"gbe_dir"`
SteamlessDir string `json:"steamless_dir"`
LutrisDir string `json:"lutris_dir"`
SteamUserdata string `json:"steam_userdata"`
SteamStoreAPI string `json:"steam_store_api"`
SteamWebAPI string `json:"steam_web_api"`
GithubAPIURL string `json:"github_api_url"`
SteamlessGithubAPI string `json:"steamless_github_api"`
// API Keys
SteamWebAPIKey string `json:"steam_web_api_key"`
HubcapAPIKey string `json:"hubcap_api_key"`
// Notifications
EnableLaunchNotify bool `json:"enable_launch_notify"`
LaunchNotifyMode string `json:"launch_notify_mode"`
// Operational Settings
GbeMode string `json:"gbe_mode"`
Lutris bool `json:"lutris"`
Steamless bool `json:"steamless"`
Achievements bool `json:"achievements"`
Normalize bool `json:"normalize"`
Platform string `json:"platform"`
Runner string `json:"runner"`
WinePrefix string `json:"wine_prefix"`
}
Config holds user-configurable paths and settings for gamux.
func DefaultConfig ¶ added in v0.4.0
func DefaultConfig() *Config
DefaultConfig resolves default paths respecting XDG environment variables.
func LoadConfig ¶ added in v0.4.0
LoadConfig loads configuration from a JSON file or returns defaults.
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
HTMLURL string `json:"html_url"`
PublishedAt time.Time `json:"published_at"`
UpdatedAt time.Time `json:"updated_at"`
Assets []struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
} `json:"assets"`
}
Release represents a GitHub release.
Click to show internal directories.
Click to hide internal directories.