mods

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchModChecksums

func FetchModChecksums(ctx context.Context, modVersions map[string]string) (map[string]*common.ChecksumPack, error)

func FilterUnsupportedPackages

func FilterUnsupportedPackages(ctx context.Context, pkgs []*common.Package) []*common.Package

func GetEngineForMod

func GetEngineForMod(ctx context.Context, mod *common.Release) (*common.Release, error)

func GetFlagsForEngine

func GetFlagsForEngine(ctx context.Context, engine *common.Release) (map[string]*client.FlagInfo_Flag, error)

func GetFlagsForMod

func GetFlagsForMod(ctx context.Context, mod *common.Release) (map[string]*client.FlagInfo_Flag, error)

func GetModDependents

func GetModDependents(ctx context.Context, mods storage.ModProvider, modID, version string) ([][2]string, error)

func GetModFolder

func GetModFolder(ctx context.Context, rel *common.Release) (string, error)

func ImportMods

func ImportMods(ctx context.Context, modFiles []string) error

func InstallMod

func InstallMod(ctx context.Context, req *client.InstallModRequest) error

func LaunchMod

func LaunchMod(ctx context.Context, mod *common.Release, settings *client.UserSettings, label string) error

func SaveLocalMod

func SaveLocalMod(ctx context.Context, mod *common.ModMeta) error

func SaveLocalModRelease

func SaveLocalModRelease(ctx context.Context, rel *common.Release) error

func UpdateRemoteModIndex

func UpdateRemoteModIndex(ctx context.Context) error

func VerifyModIntegrity

func VerifyModIntegrity(ctx context.Context, rel *common.Release) error

Types

type DependencySnapshot

type DependencySnapshot map[string]string

func GetDependencySnapshot

func GetDependencySnapshot(ctx context.Context, mods storage.ModProvider, release *common.Release) (DependencySnapshot, error)

type KnArchive

type KnArchive struct {
	Checksum KnChecksum
	Filename string
	Dest     string
	URLs     []string
	FileSize int
}

type KnChecksum

type KnChecksum [2]string

type KnDep

type KnDep struct {
	ID       string
	Version  string
	Packages []string
}

type KnExe

type KnExe struct {
	File       string
	Label      string
	Properties struct {
		X64  bool
		SSE2 bool
		AVX  bool
		AVX2 bool
	}
}

type KnFile

type KnFile struct {
	Filename string
	Archive  string
	OrigName string
	Checksum KnChecksum
}

type KnMod

type KnMod struct {
	LocalPath     string
	Title         string
	Version       string
	Parent        string
	Stability     string
	Description   string
	Tile          string
	Banner        string
	ReleaseThread string `json:"release_thread"`
	Type          string
	ID            string
	Notes         string
	Folder        string
	FirstRelease  string `json:"first_release"`
	LastUpdate    string `json:"last_update"`
	Cmdline       string
	ModFlag       []string `json:"mod_flag"`
	DevMode       bool     `json:"dev_mode"`
	Screenshots   []string
	Packages      []KnPackage
	Videos        []string
}

type KnPackage

type KnPackage struct {
	Name         string
	Notes        string
	Status       string
	Environment  string
	Folder       string
	Dependencies []KnDep
	Executables  []KnExe
	Files        []KnArchive
	Filelist     []KnFile
	IsVp         bool
}

type ModInstallStep

type ModInstallStep struct {
	// contains filtered or unexported fields
}

type ModMissing

type ModMissing struct {
	ModID   string
	Version string
}

func (ModMissing) Error

func (e ModMissing) Error() string

type PackageMissing

type PackageMissing struct {
	ModID   string
	Version string
	Package string
}

func (PackageMissing) Error

func (e PackageMissing) Error() string

type UserModSettings

type UserModSettings struct {
	Cmdline     string
	CustomBuild string `json:"custom_build"`
	LastPlayed  string `json:"last_played"`
	Exe         []string
}

Jump to

Keyboard shortcuts

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