versions

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: GPL-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"`
	CreatedAt        time.Time `json:"createdAt"`
}

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