flag

package
v0.0.0-...-bc22551 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const RequiredData = "modmanager"

Variables

This section is empty.

Functions

func AddonPath

func AddonPath(opt Options) string

func ConfigPath

func ConfigPath(opt Options) string

func ExclusionPath

func ExclusionPath(opt Options) string

func LoadOrderPath

func LoadOrderPath(opt Options) string

func LogPath

func LogPath(opt Options) string

func ModPath

func ModPath(opt Options) string

func OpenConfigFile

func OpenConfigFile(opt Options) *os.File

func OpenLogFile

func OpenLogFile(opt Options) *os.File

func OutputPath

func OutputPath(opt Options) string

func RenamePath

func RenamePath(opt Options) string

func TempPath

func TempPath(opt Options) string

Types

type Data

type Data struct {
	Path        string   `json:"path"`
	IsDir       bool     `json:"isDir"`
	Requires    []string `json:"requires"`
	Unsupported bool     `json:"unsupported"`
}

type Engine

type Engine struct {
	Paths []Data `json:"paths"`
	Hooks []Hook `json:"hooks"`
}

type Files

type Files struct {
	Files []string `json:"files"`
	Data  Data     `json:"data"`
}

type Game

type Game struct {
	Name   string `json:"name"`
	Engine Engine `json:"engine"`
}

type Hook

type Hook struct {
	Name     string   `json:"name"`
	Dll      string   `json:"dll"`
	Arch     string   `json:"arch"`
	Requires []string `json:"requires"`
	Include  []string `json:"include"`
}

type Options

type Options struct {
	// user
	Game       string `json:"game"`
	LoadOrder  string `json:"loadOrder"`
	Addons     string `json:"addons"`
	Renames    string `json:"renames"`
	Exclusions string `json:"exclusions"`
	Engine     string `json:"engine"`
	Formats    string `json:"formats"`
	Bin        string `json:"bin"`
	Silent     bool   `json:"silent"`

	// manager
	Data   string `json:"data"`
	Mods   string `json:"mods"`
	Temp   string `json:"temp"`
	Output string `json:"output"`
	User   string `json:"user"`
	Hook   string `json:"hook"`
	Config string `json:"config"`
	Log    string `json:"log"`
}

func NewOptions

func NewOptions() *Options

Jump to

Keyboard shortcuts

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