ludo: github.com/libretro/ludo/rdb Index | Files

package rdb

import "github.com/libretro/ludo/rdb"

Package rdb is a parser for rdb files, a binary database of games with metadata also used by RetroArch.

Index

Package Files

rdb.go

type DB Uses

type DB map[string]RDB

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

func (*DB) FindByCRC Uses

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

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

func (*DB) FindByROMName Uses

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

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

type Game Uses

type Game struct {
    Path         string
    Name         string
    Description  string
    Genre        string
    Developer    string
    Publisher    string
    Franchise    string
    Origin       string
    Rumble       bool
    Serial       string
    ROMName      string
    ReleaseMonth uint
    ReleaseYear  uint
    Size         uint64
    CRC32        uint32
    System       string
}

Game represents a game in the libretro database

func (*Game) SetField Uses

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

SetField sets a field in the entry

type RDB Uses

type RDB []Game

RDB contains all the game descriptions for a system

func Parse Uses

func Parse(rdb []byte) RDB

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

Package rdb imports 4 packages (graph) and is imported by 4 packages. Updated 2019-08-02. Refresh now. Tools for package owners.