Documentation
¶
Overview ¶
Package romloader handles loading ROM files from various sources, including compressed archives (ZIP, 7z, gzip, tar.gz, RAR).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFileTooLarge = errors.New("file exceeds maximum size limit")
ErrFileTooLarge is returned when extracted content exceeds size limit
var ErrNoROMFile = errors.New("no ROM file found in archive")
ErrNoROMFile is returned when no ROM file is found in an archive
var ErrUnsupportedFormat = errors.New("unsupported file format")
ErrUnsupportedFormat is returned for unrecognized file formats
Functions ¶
func Load ¶
Load reads a ROM from a file path. It auto-detects compressed archives via magic bytes and extracts the first file matching one of the given extensions. For raw (non-archive) files, the extension must match or the file is loaded as-is if no archive format is detected.
Returns the ROM data, the filename (basename only, useful for display), and any error.
Types ¶
This section is empty.