settings

package
v1.0.18-0...-26f8a7e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SMM2SelectedProfile map[string]string
View Source
var Settings = &settings{
	WindowPosition:        nil,
	Maximized:             false,
	RestoreWindowPosition: true,

	UnexpandedSize: utils.UnexpandedDefault,
	ExpandedSize:   utils.ExpandedDefault,

	StartView: ViewCompact,

	FavoriteMods: []string{},
	ModFilters: SavedModFilters{
		Order:  "last-updated",
		Filter: "compatible",
	},

	RemoteNames: map[string]string{},

	QueueAutoStart:      true,
	IgnoredUpdates:      map[string][]string{},
	UpdateCheckMode:     UpdateOnLaunch,
	ViewedAnnouncements: []string{},

	Offline: false,

	Konami:       false,
	LaunchButton: "normal",

	Debug: false,

	NewUserSetupComplete: false,
}

Functions

func LoadSettings

func LoadSettings() error

func SaveSettings

func SaveSettings() error

func ValidateCacheDir

func ValidateCacheDir(dir string) error

Types

type SavedModFilters

type SavedModFilters struct {
	Order  string `json:"order"`
	Filter string `json:"filter"`
}

type UpdateCheckMode

type UpdateCheckMode string
var (
	UpdateOnLaunch UpdateCheckMode = "launch"
	UpdateOnExit   UpdateCheckMode = "exit"
	UpdateAsk      UpdateCheckMode = "ask"
)

type View

type View string
var (
	ViewCompact  View = "compact"
	ViewExpanded View = "expanded"
)

Jump to

Keyboard shortcuts

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