rdb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB map[string]RDB

DB is a database that contains many RDB, mapped to their system name

func (*DB) FindByCRC

func (db *DB) FindByCRC(romPath string, romName string, CRC32 uint32, games chan (Entry))

FindByCRC loops over the RDBs in the DB and concurrently matches CRC32 checksums.

func (*DB) FindByROMName

func (db *DB) FindByROMName(romPath string, romName string, CRC32 uint32, games chan (Entry))

FindByROMName loops over the RDBs in the DB and concurrently matches ROM names.

type Entry

type Entry struct {
	Path        string
	Name        string
	Description string
	Genre       string
	Developer   string
	Publisher   string
	Franchise   string
	Serial      string
	ROMName     string
	Size        uint64
	CRC32       uint32
	System      string
}

Entry represents a game in the libretro database

func (*Entry) SetField

func (g *Entry) SetField(key string, value string)

SetField sets a field in the entry

type RDB

type RDB []Entry

RDB contains all the game descriptions for a system

func Parse

func Parse(rdb []byte) RDB

Parse parses a .rdb file content and returns an array of Entries

Jump to

Keyboard shortcuts

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