Documentation ¶
Overview ¶
Package settings defines the app settings and functions to save and load those.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Defaults = defaultSettings()
Defaults stores default values for settings
Functions ¶
func CoreForPlaylist ¶
CoreForPlaylist returns the absolute path of the default libretro core for a given playlist
Types ¶
type Settings ¶
type Settings struct { VideoFullscreen bool `hide:"ludos" json:"video_fullscreen" label:"Video Fullscreen" fmt:"%t" widget:"switch"` VideoMonitorIndex int `json:"video_monitor_index" label:"Video Monitor Index" fmt:"%d"` VideoFilter string `json:"video_filter" label:"Video Filter" fmt:"<%s>"` AudioVolume float32 `json:"audio_volume" label:"Audio Volume" fmt:"%.1f" widget:"range"` MenuAudioVolume float32 `json:"menu_audio_volume" label:"Menu Audio Volume" fmt:"%.1f" widget:"range"` ShowHiddenFiles bool `json:"menu_showhiddenfiles" label:"Show Hidden Files" fmt:"%t" widget:"switch"` CoreForPlaylist map[string]string `hide:"always" json:"core_for_playlist"` CoresDirectory string `hide:"ludos" json:"cores_dir" label:"Cores Directory" fmt:"%s" widget:"dir"` AssetsDirectory string `hide:"ludos" json:"assets_dir" label:"Assets Directory" fmt:"%s" widget:"dir"` DatabaseDirectory string `hide:"ludos" json:"database_dir" label:"Database Directory" fmt:"%s" widget:"dir"` SavestatesDirectory string `hide:"ludos" json:"savestates_dir" label:"Savestates Directory" fmt:"%s" widget:"dir"` SavefilesDirectory string `hide:"ludos" json:"savefiles_dir" label:"Savefiles Directory" fmt:"%s" widget:"dir"` ScreenshotsDirectory string `hide:"ludos" json:"screenshots_dir" label:"Screenshots Directory" fmt:"%s" widget:"dir"` SystemDirectory string `hide:"ludos" json:"system_dir" label:"System Directory" fmt:"%s" widget:"dir"` PlaylistsDirectory string `hide:"ludos" json:"playlists_dir" label:"Playlists Directory" fmt:"%s" widget:"dir"` ThumbnailsDirectory string `hide:"ludos" json:"thumbnail_dir" label:"Thumbnails Directory" fmt:"%s" widget:"dir"` SSHService bool `hide:"app" json:"ssh_service" label:"SSH" widget:"switch" service:"sshd.service" path:"/storage/.cache/services/sshd.conf"` SambaService bool `` /* 127-byte string literal not displayed */ BluetoothService bool `` /* 140-byte string literal not displayed */ }
Settings is the list of available settings for the program. It serializes to JSON. Tags are used to set a human readable label and a format for the settings value. Widget sets the graphical representation of the value.
var Current Settings
Current stores the current settings at runtime
Click to show internal directories.
Click to hide internal directories.