playlists

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: GPL-3.0 Imports: 9 Imported by: 3

Documentation

Overview

Package playlists is the playlist manager of Ludo. In Ludo, playlists are CSV files containing the ROM path, name, and CRC32 checksum. Playlists are kept into memory for fast lookup of entries and deduplication.

Index

Constants

This section is empty.

Variables

View Source
var Playlists = map[string]Playlist{}

Playlists is a map of playlists organized per system.

Functions

func Contains added in v0.3.5

func Contains(CSVPath, path string, CRC32 uint32) bool

Contains checks if a game is already in a playlist.

func Count added in v0.3.5

func Count(path string) int

Count is a quick way of knowing how many games are in a playlist

func Load added in v0.3.5

func Load()

Load loops over lpl files in the playlists directory and loads them into memory.

func Save added in v0.14.7

func Save(path string)

Save will write a playlist to the filesystem

func ShortName added in v0.3.5

func ShortName(in string) string

ShortName shortens the name of some game systems that are too long to be displayed in the menu

Types

type Game added in v0.5.0

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
	CRC32 uint32 // Checksum of the game, used for deduplication
}

Game represents a game in a playlist.

type Playlist

type Playlist []Game

Playlist is a list of games, result of scanning for games on the filesystem.

Jump to

Keyboard shortcuts

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