rdb

package
v0.9.0 Latest Latest
Warning

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

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

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 added in v0.5.0

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 added in v0.5.0

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

Jump to

Keyboard shortcuts

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