Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WineArchitecture ¶
func WineArchitecture(arch Architecture) string
Types ¶
type Architecture ¶
type Architecture string
const ( ArchitectureX86 Architecture = "x86" ArchitectureX64 Architecture = "x64" ArchitectureARM64 Architecture = "arm64" )
func DetectExecutableArchitecture ¶
func DetectExecutableArchitecture(path string) (Architecture, error)
func WineArchToArchitecture ¶ added in v0.0.14
func WineArchToArchitecture(arch autorunner.FileArch) Architecture
type EnvVar ¶
func EnvStringToEnv ¶ added in v0.0.14
type Game ¶
type Game struct {
Name string `json:"name"`
GamePath string `json:"game_path"`
Executable string `json:"executable"`
Architecture Architecture `json:"architecture,omitempty"`
WorkingDir string `json:"working_dir"`
IconPath string `json:"icon_path,omitempty"`
ImagePath string `json:"image_path,omitempty"`
Runner RunnerType `json:"runner"`
RunnerPath string `json:"runner_path"`
RunnerConfig gr.Config `json:"runner_config,omitempty"`
WineConfig *wine.Options `json:"wine_config,omitempty"`
GamescopeConfig *gamescope.Options `json:"gamescope_config,omitempty"`
PrefixPath string `json:"prefix_path,omitempty"`
VirtualDesktop string `json:"virtual_desktop,omitempty"`
RequiresSteam bool `json:"requires_steam"`
SteamAppID string `json:"steam_app_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
RuntimeInfo RuntimeStatus `json:"runtime_info"`
Locale string `json:"locale,omitempty"`
StageToPrefix bool `json:"stage_to_prefix,omitempty"`
StagedPath string `json:"staged_path,omitempty"`
TextHookLogFile string `json:"text_hook_log_file"`
TextHookFilter []string `json:"text_hook_filter,omitempty"`
EnvVars []EnvVar `json:"env_vars"`
EngineName string `json:"engine_name"`
}
type RunnerType ¶
type RunnerType string
const ( RunnerWine RunnerType = "wine" RunnerGamescope RunnerType = "gamescope" RunnerProton RunnerType = "proton" RunnerSteam RunnerType = "steam" )
type RuntimeStatus ¶
type RuntimeStatus struct {
WinePath string `json:"wine_path,omitempty"`
WineBootPath string `json:"wineboot_path,omitempty"`
SteamPath string `json:"steam_path,omitempty"`
SteamRoot string `json:"steam_root,omitempty"`
AvailableProton []string `json:"available_proton,omitempty"`
SelectedProtonPath string `json:"selected_proton_path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.