Documentation

Overview

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

    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 (Game))

        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 (Game))

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

          type Game

          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

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

              SetField sets a field in the entry

              type RDB

              type RDB []Game

                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

                  Source Files