ssgenre

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ssgenre maps ScreenScraper genre names onto Core's genre vocabulary. ScreenScraper is where most EmulationStation gamelists and the MiSTer artwork packs get their genres, so both scrapers share this table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(raw string) (values []tags.TagValue, unmapped []string)

Lookup maps a genre field onto canonical genre values. The field may hold several names joined by "/", ",", ";", "|" or "-", and those characters also appear inside single names ("Racing, Driving", "Shoot'em Up / Vertical"), so the field is split at every separator and the pieces are regrouped into known names. Of the groupings, the one leaving the fewest pieces unknown wins, then the one with the fewest (so longest) names. unmapped holds the pieces no name covered, for the caller to report.

Types

This section is empty.

Jump to

Keyboard shortcuts

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