Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanProgress ¶
type ScanProgress struct {
Phase ScanPhase
Progress float64 // 0.0 to 1.0
GamesFound int
DownloadTotal int
DownloadComplete int
StatusText string
}
ScanProgress represents progress updates from the scanner
type ScanResult ¶
ScanResult represents the final scan result
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner handles ROM scanning in the background
func NewScanner ¶
func NewScanner(dirs []storage.ScanDirectory, excluded []string, existing map[string]*storage.GameEntry, extensions []string, defaultConsoleID int, disc bool, discID coreif.DiscIdentifier, sources Sources) *Scanner
NewScanner creates a new scanner instance. existing holds the entries whose user data a scan keeps when it finds their game: the library and the removed games.
func (*Scanner) Progress ¶
func (s *Scanner) Progress() <-chan ScanProgress
Progress returns the progress channel
type Sources ¶ added in v0.8.0
type Sources struct {
ArtworkURL string // HTTPS base URL of the artwork site
ArtworkKeys []string // keys trusted to sign the artwork index, as algorithm:base64
ArtworkDownload string // which images to download: a storage.ArtworkDownload* setting
}
Sources are where a scan downloads artwork from, and which artwork. An empty URL turns artwork downloads off; the app leaves it empty when the emulator does not publish artwork.