megasd

package module
v0.0.0-...-afc20ba Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

README

Build Status Go Report Card GoDoc

MegaSD

go get github.com/bodgit/megasd/...

To import an existing database generated by the C# tool:

megasd import /path/to/db.xml

(This will need the XML file and the original PNG image files.)

You can then scan your Micro SD card and generate the metadata:

megasd scan /Volumes/MEGADRIVE

The tool uses a small SQLite database, the location of which defaults to $PWD/megasd.db. You can pass a --db flag or set the environment variable $MEGASD_DB to put this file somewhere else.

Documentation

Overview

Package megasd is a library for maintaining content on the Terraonion MegaSD cartridge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MegaSD

type MegaSD struct {
	// contains filtered or unexported fields
}

MegaSD manages an internal game database

func New

func New(file string, logger *log.Logger) (*MegaSD, error)

New creates a new MegaSD instance given the intended path to the database and an instance of log.Logger.

func (*MegaSD) Close

func (m *MegaSD) Close() error

Close closes the database

func (*MegaSD) ImportXML

func (m *MegaSD) ImportXML(file string) error

ImportXML parses the provided XML file and imports it and any screenshots it references into the internal database, destroying any previous data

func (*MegaSD) Scan

func (m *MegaSD) Scan(path string) error

Scan traverses the given directory and creates a metadata in any sub-directory that contains matching images

Directories

Path Synopsis
cmd
Package crc32 implements the 32-bit cyclic redundancy check, or CRC-32, checksum as implemented by the Terraonion MegaSD cartridge.
Package crc32 implements the 32-bit cyclic redundancy check, or CRC-32, checksum as implemented by the Terraonion MegaSD cartridge.
Package image implements a MegaSD image decoder and encoder.
Package image implements a MegaSD image decoder and encoder.
Package metadata implements the small metadata database written to each directory on the MegaSD filesystem that contains ROM and/or CD images.
Package metadata implements the small metadata database written to each directory on the MegaSD filesystem that contains ROM and/or CD images.

Jump to

Keyboard shortcuts

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