Documentation ¶
Overview ¶
Package neo implements the .neo file format used by the Terraonion NeoSD cartridge.
Index ¶
Constants ¶
View Source
const ( P int = iota S M V1 V2 C Areas )
These constants map to the ROM sections
View Source
const (
// Extension is the conventional file extension used
Extension = ".neo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Size [Areas]uint32 Year uint32 Genre Genre Screenshot uint32 NGH uint32 Name string Manufacturer string ROM [Areas][]byte // contains filtered or unexported fields }
File represents a .neo file. It is simply a header followed by six ROM sections
func NewFile ¶
NewFile returns a File based on the passed zip file or directory containing Neo Geo ROM images. If the last element of the path stripped of any .extension matches a game known to MAME then it will use MAME logic to decode the ROM images otherwise it falls back to generic logic based solely on the filenames
func (*File) MarshalBinary ¶
MarshalBinary encodes the file into binary form and returns the result
func (*File) UnmarshalBinary ¶
UnmarshalBinary decodes the file from binary form
Click to show internal directories.
Click to hide internal directories.