Discover Packages
github.com/libretro/ludo
dat
package
Version:
v0.16.12
Opens a new window with list of versions in this module.
Published: Dec 14, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package dat is a parser for dat files, a binary database of games with
metadata also used by RetroArch.
CRC is the CRC32 checksum of a ROM
UnmarshalXMLAttr is used to parse a hex number in string form to uint
DB is a database that contains many Dats, mapped to their system name
FindByCRC loops over the Dats in the DB and concurrently matches CRC checksums.
FindByROMName loops over the Dats in the DB and concurrently matches ROM names.
type Dat struct {
XMLName xml .Name `xml:"datafile"`
Games []Game `xml:"game"`
}
Dat is a list of the games of a system
Parse parses a .dat file content and returns an array of Entries
Game represents a game and can contain a list of ROMs
type ROM struct {
XMLName xml .Name `xml:"rom"`
Name string `xml:"name,attr"`
CRC CRC `xml:"crc,attr"`
}
ROM can be a game file or part of a game
Source Files
¶
Click to show internal directories.
Click to hide internal directories.