Documentation ¶
Index ¶
- Constants
- Variables
- func GameIDs() []string
- func Initialize(dirs []string) (err error)
- type BaseDir
- type CfGameID
- type CfPath
- type Configs
- func (c *Configs) AddDir(game GameDef, dirKind DirKind, from string) (string, error)
- func (c *Configs) GetBackupFullPath(game GameDef) string
- func (c *Configs) GetDir(game GameDef, dirKind DirKind) (dir string, err error)
- func (c *Configs) GetDownloadFullPathForGame(game GameDef) string
- func (c *Configs) GetDownloadFullPathForUtility() string
- func (c *Configs) GetModsFullPath(game GameDef) string
- func (c *Configs) Initialize() (err error)
- func (c *Configs) InitializeGames(games []GameDef)
- func (c *Configs) RemoveDir(game GameDef, dirKind DirKind, from string) (string, error)
- func (c *Configs) RemoveGameDir(game GameDef, to string) (string, error)
- func (c *Configs) Save() (err error)
- func (c *Configs) Size() fyne.Size
- type CurseForge
- type DirKind
- type GameDef
- func GameDefFromCfID(id CfGameID) (GameDef, error)
- func GameDefFromCfPath(path CfPath) (GameDef, error)
- func GameDefFromID(id GameID) (GameDef, error)
- func GameDefFromName(name GameName) (GameDef, error)
- func GameDefFromNexusID(id NexusGameID) (GameDef, error)
- func GameDefFromNexusPath(path NexusPath) (GameDef, error)
- func GameDefs() []GameDef
- type GameDir
- type GameID
- type GameName
- type InstallType
- type Nexus
- type NexusGameID
- type NexusPath
- type Remote
- type Secret
- type SteamID
- type SteamVersion
- type ThemeColor
- type Version
- type VersionID
Constants ¶
View Source
const ( WindowWidth = 1200 WindowHeight = 850 )
View Source
const (
StreamingAssetsDir = "StreamingAssets"
)
Variables ¶
View Source
var (
PWD string
)
Functions ¶
func Initialize ¶ added in v0.6.0
Types ¶
type Configs ¶
type Configs struct { FirstTime bool `json:"firstTime"` WindowX int `json:"width"` WindowY int `json:"height"` ModsDir string `json:"modDir"` ImgCacheDir string `json:"imgCacheDir"` DownloadDir string `json:"downloadDir"` BackupDir string `json:"backupDir"` Theme ThemeColor `json:"theme"` DefaultGame string `json:"openTo"` GameDirs map[string]*GameDir `json:"gameDirs"` DeleteDownloadAfterInstall bool `json:"deleteDownloadAfterInstall"` }
func (*Configs) GetBackupFullPath ¶
func (*Configs) GetDownloadFullPathForGame ¶
func (*Configs) GetDownloadFullPathForUtility ¶
func (*Configs) GetModsFullPath ¶
func (*Configs) Initialize ¶
func (*Configs) InitializeGames ¶ added in v0.6.1
func (*Configs) RemoveGameDir ¶ added in v0.5.0
type CurseForge ¶ added in v0.6.0
type GameDef ¶ added in v0.6.0
type GameDef interface { ID() GameID Name() GameName SteamID() SteamID Versions() []Version BaseDir() BaseDir Remote() Remote DefaultInstallType() InstallType LogoPath() string SetLogoPath(path string) Logo() fyne.CanvasObject SetLogo(logo fyne.CanvasObject) SteamDirFromRegistry() string }
func GameDefFromCfID ¶ added in v0.6.0
func GameDefFromCfPath ¶ added in v0.6.0
func GameDefFromID ¶ added in v0.6.0
func GameDefFromName ¶ added in v0.6.0
func GameDefFromNexusID ¶ added in v0.6.0
func GameDefFromNexusID(id NexusGameID) (GameDef, error)
func GameDefFromNexusPath ¶ added in v0.6.0
type InstallType ¶ added in v0.6.0
type InstallType string
const ( BlankInstallType InstallType = "" MoveToArchive InstallType = "MoveToArchive" Move InstallType = "Move" ImmediateDecompress InstallType = "ImmediateDecompress" )
func (*InstallType) Is ¶ added in v0.6.2
func (t *InstallType) Is(i InstallType) bool
type Nexus ¶ added in v0.6.0
type Nexus struct { ID NexusGameID `json:"id"` Path NexusPath `json:"path"` }
type NexusGameID ¶ added in v0.6.0
type NexusGameID int
type Remote ¶ added in v0.6.0
type Remote struct { Nexus Nexus `json:"nexus"` CurseForge CurseForge `json:"curseforge"` }
type Secret ¶
func GetSecrets ¶
func GetSecrets() *Secret
func (*Secret) Initialize ¶
func (s *Secret) Initialize()
type SteamVersion ¶ added in v0.6.0
type Version ¶ added in v0.6.0
type Version struct { Version VersionID `json:"version"` Steam *SteamVersion `json:"steam,omitempty"` }
Click to show internal directories.
Click to hide internal directories.