Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateAppID ¶
func CalculateBPMID ¶
func DefaultShortcut ¶
func DefaultShortcut(s *Shortcut)
DefaultShortcut sets the default settings of a shortcut
Types ¶
type Images ¶
type Images struct { Portrait string `json:"portrait"` Landscape string `json:"landscape"` Hero string `json:"hero"` Logo string `json:"logo"` Icon string `json:"icon"` }
Images is a structure that holds the paths to grid images for a shortcut.
type Shortcut ¶
type Shortcut struct { AllowDesktopConfig int `json:"AllowDesktopConfig"` AllowOverlay int `json:"AllowOverlay"` AppName string `json:"AppName"` Devkit int `json:"Devkit"` DevkitGameID string `json:"DevkitGameID"` DevkitOverrideAppID int `json:"DevkitOverrideAppID"` Exe string `json:"Exe"` FlatpakAppID string `json:"FlatpakAppID"` IsHidden int `json:"IsHidden"` LastPlayTime int `json:"LastPlayTime"` LaunchOptions string `json:"LaunchOptions"` OpenVR int `json:"OpenVR"` ShortcutPath string `json:"ShortcutPath"` StartDir string `json:"StartDir"` Appid int64 `json:"appid"` Icon string `json:"icon"` Tags map[string]interface{} `json:"tags"` Images *Images `json:"images,omitempty"` }
Shortcut defines a single shortcut entry in the VDF file
func NewShortcut ¶
func NewShortcut(name, exe string, settings ...ShortcutSetting) *Shortcut
NewShortcut will return a new Steam Shortcut
type ShortcutSetting ¶
type ShortcutSetting func(s *Shortcut)
ShortcutSetting is a function that mutates a Shortcut
type Shortcuts ¶
func NewShortcuts ¶
func NewShortcuts() *Shortcuts
func (*Shortcuts) LookupByID ¶
LookupByID will return a shortcut by name
Click to show internal directories.
Click to hide internal directories.