game

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

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

type EnvVar struct {
	Key   string
	Value string
}

func EnvStringToEnv added in v0.0.14

func EnvStringToEnv(env []string) []EnvVar

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"`
}

func (*Game) DeleteLog added in v0.0.8

func (g *Game) DeleteLog() error

func (*Game) LogSize added in v0.0.8

func (g *Game) LogSize() (int64, error)

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"`
}

Jump to

Keyboard shortcuts

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