gamelist

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	XMLName xml.Name `xml:"gameList"`
	Games   []Game   `xml:"game"`

	RomNames  map[string]*Game `xml:"-"`
	Names     map[string]*Game `xml:"-"`
	Path      string           `xml:"-"`
	ShortPath string           `xml:"-"`
}

func New

func New(path string) (*File, error)

func (*File) Save

func (gamelistFile *File) Save() error

type Game

type Game struct {
	Name        string  `xml:"name"`
	Description string  `xml:"desc,omitempty"`
	Path        string  `xml:"path"`
	Publisher   string  `xml:"publisher,omitempty"`
	Developer   string  `xml:"developer,omitempty"`
	ReleaseDate string  `xml:"releasedate,omitempty"`
	Image       string  `xml:"image,omitempty"`
	Video       string  `xml:"video,omitempty"`
	Genre       string  `xml:"genre,omitempty"`
	Rating      float64 `xml:"rating,omitempty"`
	Players     string  `xml:"players,omitempty"`
	Playcount   int     `xml:"playcount,omitempty"`
	LastPlayed  string  `xml:"lastplayed,omitempty"`
	Favorite    bool    `xml:"favorite,omitempty"`
	Hidden      bool    `xml:"hidden,omitempty"`
	Reason      string  `xml:"reason,omitempty"`

	RomName string `xml:"-"`
	System  string `xmk:"-"`
}

Jump to

Keyboard shortcuts

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