gameid

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gameid wraps go-gameid disc identification for the two things that need it: the indexer (identify a disc image to store as a media property) and the optical drive reader (identify an inserted disc live). It has no knowledge of how its result is stored or matched — that's a plain media property to everything downstream.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleForSystem

func ConsoleForSystem(systemID string) (gameid.Console, bool)

func IdentifyPathForSystem

func IdentifyPathForSystem(path, systemID string) (string, error)

func IsCandidate

func IsCandidate(path, systemID string) bool

IsCandidate reports whether path/systemID is eligible for gameid identification: a matching disc-image extension on a system with a known console mapping. Callers can use this to skip more expensive gameid-specific work for systems/extensions that will never match.

func NormalizeID

func NormalizeID(id string) string

func ShouldIndexPath

func ShouldIndexPath(path string) bool

Types

type Candidate

type Candidate struct {
	SystemID string
	ID       string
}

Candidate is a system/ID pair identified from a disc image or live disc.

func IdentifyLiveDisc

func IdentifyLiveDisc(path string) []Candidate

Jump to

Keyboard shortcuts

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