checksum

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const JSONFile = "src/checksum/data/atari2600.json"
View Source
const YAMLFile = "src/checksum/data/atari2600.yml"

Variables

This section is empty.

Functions

func GetChecksums

func GetChecksums(emulator, fsPath string) (map[string]ROM, error)

func WriteChecksumsToYaml

func WriteChecksumsToYaml() error

Types

type Checksums

type Checksums struct {
	Datafile Datafile `json:"datafile"`
}

type Datafile

type Datafile struct {
	Game []Game `json:"game"`
}

type Game

type Game struct {
	ROM interface{} `json:"rom"`
}

type ROM

type ROM struct {
	Name   string `json:"_name"`
	MD5    string `json:"_md5"`
	SHA1   string `json:"_sha1"`
	SHA256 string `json:"_sha256"`
	Size   int    `json:"_size"`
}

func CalcChecksum

func CalcChecksum(romPath string) (ROM, error)

Jump to

Keyboard shortcuts

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