versions

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0, LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeVCRuntimeHash

func ComputeVCRuntimeHash(versionDir string) (string, error)

func ValidateFolderName

func ValidateFolderName(name string) string

func WriteMeta

func WriteMeta(versionDir string, meta VersionMeta) error

Types

type VersionMeta

type VersionMeta struct {
	Name                       string    `json:"name"        `
	GameVersion                string    `json:"gameVersion"`
	Type                       string    `json:"type"       `
	EnableIsolation            bool      `json:"enableIsolation"`
	EnableConsole              bool      `json:"enableConsole"`
	EnableEditorMode           bool      `json:"enableEditorMode"`
	EnableRenderDragon         bool      `json:"enableRenderDragon"`
	EnableCtrlRReloadResources bool      `json:"enableCtrlRReloadResources"`
	LaunchArgs                 string    `json:"launchArgs"`
	EnvVars                    string    `json:"envVars"`
	CreatedAt                  time.Time `json:"createdAt"`
	Registered                 bool      `json:"registered,omitempty"`
}

func ReadMeta

func ReadMeta(versionDir string) (VersionMeta, error)

func ScanVersions

func ScanVersions(versionsRoot string) ([]VersionMeta, error)

Jump to

Keyboard shortcuts

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