versions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 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"`
	EnableRenderDragon bool      `json:"enableRenderDragon"`
	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