history

package
v0.16.3-altui Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package history manages the list of recently played games

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Load loads history.csv in memory

func Push

func Push(g Game)

Push pushes a game onto the stack

func Save

func Save() error

Save persists the history as a csv file

Types

type Game

type Game struct {
	Path      string // Absolute path of the game on the filesystem
	Name      string // Human readable name of the game, comes from the RDB
	System    string // Name of the game console
	CorePath  string // Absolute path to the libretro core
	Savestate string // Absolute path of the last savestate on this game
}

Game represents a game in the history file

type History

type History []Game

History is a list of games

var List History

List is the list of recently played games

Jump to

Keyboard shortcuts

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