lib

package
v0.0.0-...-f915d7a Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsolesAvailable = map[string]string{
	"snes": "Nintendo%20-%20Super%20Nintendo%20Entertainment%20System",
}

Functions

func PrettyPrint

func PrettyPrint(i interface{}) string

func StringInSlice

func StringInSlice(str string, list []string) bool

Types

type RemoteCache

type RemoteCache = map[string]RemoteRomFile

type RemoteRomFile

type RemoteRomFile struct {
	RemoteName string
	// Full URL of the box art image
	RemoteBoxArt    string
	RemoteImageName string
}

type RomFile

type RomFile struct {
	LocalName  string
	RemoteRom  RemoteRomFile
	AllMatches fuzzy.Ranks
}

func (*RomFile) HasMatch

func (r *RomFile) HasMatch() bool

func (*RomFile) PossibleMismatch

func (r *RomFile) PossibleMismatch() bool

type RomFiles

type RomFiles []RomFile

func CalculateLocalDeltas

func CalculateLocalDeltas(console string, romDir string) (romFiles, possibleMismatches, missingRemotes RomFiles)

func (*RomFiles) Matches

func (r *RomFiles) Matches() RomFiles

Jump to

Keyboard shortcuts

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