config

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version            = "dev"
	ConfigFile         = "screech.yaml"
	Debug              bool
	ScreenWidth        = int32(1280)
	ScreenHeight       = int32(720)
	CurrentScreen      string
	BodyFont           *ttf.Font
	HeaderFont         *ttf.Font
	ListFont           *ttf.Font
	LongTextFont       *ttf.Font
	Colors             FontColors
	RomsBaseDir        string
	LogosBaseDir       string
	UiControls         = "assets/ui_controls_1280_720.bmp"
	UiBackground       = "assets/bg.bmp"
	UiOverlay          = "assets/bg_overlay.bmp"
	UiOverlaySelection = "assets/bg_overlay_selection.bmp"
	Username           string
	Password           string
	Systems            map[string]SystemSettings
	Media              ScrapeMedia
	Boxart             = boxartConfig{
		Width:  400,
		Height: 580,
		Dir:    "thumbnails",
	}
	Threads           = 1
	MaxScanDepth      = 2
	ExcludeExtensions []string

	IgnoreSkippedRomMessage bool
)

Functions

func InitVars

func InitVars()

func SaveCurrent

func SaveCurrent()

func ScrapedImgDir

func ScrapedImgDir(outputDir string) string

Types

type FontColors

type FontColors struct {
	WHITE     sdl.Color
	PRIMARY   sdl.Color
	SECONDARY sdl.Color
	BLACK     sdl.Color
}

type ScrapeMedia

type ScrapeMedia struct {
	Type                string   `yaml:"type"`
	Regions             []string `yaml:"regions"`
	Width               int32    `yaml:"width"`
	Height              int32    `yaml:"height"`
	IgnoreMissingRegion bool     `yaml:"ignore-missing-region"`
}

type SystemSettings added in v1.3.0

type SystemSettings struct {
	ID        string `yaml:"id"`
	Name      string `yaml:"name"`
	OutputDir string `yaml:"output-dir,omitempty"`
}

Jump to

Keyboard shortcuts

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