steps

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conflicts

func Conflicts(state *State) (result mods.Result, err error)

func DisableMod

func DisableMod(state *State) (result mods.Result, err error)

func Download

func Download(state *State) (result mods.Result, err error)

func EnableMod

func EnableMod(state *State) (result mods.Result, err error)

func Extract

func Extract(state *State) (mods.Result, error)

func Install

func Install(state *State) (result mods.Result, err error)

func PostInstall

func PostInstall(state *State) (mods.Result, error)

func PreDownload

func PreDownload(state *State) (result mods.Result, err error)

func ShowWorkingDialog

func ShowWorkingDialog(_ *State) (mods.Result, error)

func Uninstall added in v0.9.0

func Uninstall(state *State) (mods.Result, error)

func UpdateMoogleFile added in v1.0.1

func UpdateMoogleFile(state *State) (mods.Result, error)

func VerifyDisable

func VerifyDisable(state *State) (mods.Result, error)

func VerifyEnable

func VerifyEnable(state *State) (mods.Result, error)

Types

type Extracted

type Extracted struct {
	ToInstall *mods.ToInstall
	Files     []archive.ExtractedFile
	// contains filtered or unexported fields
}

func (*Extracted) Compile

func (e *Extracted) Compile(game config.GameDef, extractedDir string) (err error)

func (*Extracted) FilesToInstall

func (e *Extracted) FilesToInstall() []*FileToInstall

type FileToInstall

type FileToInstall struct {
	Relative     string
	AbsoluteFrom string
	AbsoluteTo   string
	Skip         bool
	// contains filtered or unexported fields
}

type State

type State struct {
	Game           config.GameDef
	Mod            mods.TrackedMod
	Downloaded     []string
	ToInstall      []*mods.ToInstall
	ExtractedFiles []Extracted
	Requires       *mods.Mod
	Added          []mods.TrackedMod
	DirsToRemove   []string
}

func NewState

func NewState(game config.GameDef, mod mods.TrackedMod) *State

type Step

type Step func(state *State) (result mods.Result, err error)

Jump to

Keyboard shortcuts

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