Documentation ¶
Overview ¶
Package cartridgeloader represents cartridge data when not attached to the VCS. When a reference to a cartridge is required functions expect an instance of cartridgeloader.Loader.
cl := cartridgeloader.Loader{ Filename: "roms/Pitfall.bin", }
When the cartridge is ready to be loaded the emulator calls the Load() function. This function currently handles files (specified with Filename) that are stored locally and also over http. Other protocols could easily be added. A good improvement would be to allow loading from zip or tar files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct { Filename string // empty string or "AUTO" indicates automatic fingerprinting Format string // expected hash of the loaded cartridge. empty string indicates that the // hash is unknown and need not be validated Hash string // contains filtered or unexported fields }
Loader is used to specify the cartridge to use when Attach()ing to the VCS. it also permits the called to specify the format of the cartridge (if necessary. fingerprinting is pretty good)