files

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendArchiveFiles added in v0.9.0

func AppendArchiveFiles(game config.GameDef, modID mods.ModID, archive string, files ...string)

func Archives added in v0.9.0

func Archives(game config.GameDef, modID mods.ModID) map[string]collections.Set[string]

func EmptyMods

func EmptyMods(game config.GameDef) (result []mods.ModID)

func Files

func Files(game config.GameDef, modID mods.ModID) collections.Set[string]

func HasArchiveFile added in v0.9.0

func HasArchiveFile(game config.GameDef, archive string, file string) (modID mods.ModID, found bool)

func HasFile

func HasFile(game config.GameDef, file string) (modID mods.ModID, found bool)

func Initialize

func Initialize() error

func ModTracker

func ModTracker(game config.GameDef) *modTracker

func RemoveAllFilesForGame added in v0.9.0

func RemoveAllFilesForGame(game config.GameDef)

func RemoveAllFilesForMod added in v0.9.0

func RemoveAllFilesForMod(game config.GameDef, modID mods.ModID)

func RemoveArchiveFiles added in v0.9.0

func RemoveArchiveFiles(game config.GameDef, modID mods.ModID, archive string, files ...string)

func RemoveFiles

func RemoveFiles(game config.GameDef, modID mods.ModID, files ...string)

func SetFiles

func SetFiles(game config.GameDef, modID mods.ModID, files ...string)

Types

type Conflict

type Conflict struct {
	Owner     *mods.Mod
	Name      string
	Path      string
	Selection *mods.Mod
}

func FindConflicts

func FindConflicts(game config.GameDef, files []string) (conflicts []*Conflict)

func FindConflictsWithArchive added in v0.9.0

func FindConflictsWithArchive(game config.GameDef, archive string, files []string) (conflicts []*Conflict)

Jump to

Keyboard shortcuts

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