Documentation
¶
Overview ¶
Package fixture makes tiny files for tests that have the headers real games have and nothing else: no game's code or data, only the marks the checks in gameid look for. Everything here is written byte by byte, so no game is ever in this repository.
Index ¶
- func Boot(mark string) []byte
- func CIA(program []byte, flags uint16, titleHigh uint32) []byte
- func CSO(plain []byte) []byte
- func DOL(wii bool) []byte
- func DolphinCISO(disc []byte) []byte
- func GB(title string) []byte
- func GBA(title, code string) []byte
- func GCZ(disc []byte) []byte
- func ISO(system string, files ...DiscFile) []byte
- func MasterSystem(gameGear bool) []byte
- func MegaDrive(title, serial string) []byte
- func N64(title, code string) []byte
- func N64Swapped(title, code string) []byte
- func NCCH(plain, newOnly bool, size int) []byte
- func NCCHUnflagged(size int) []byte
- func NDS(title, code string) []byte
- func NES() []byte
- func NRO(title string) []byte
- func NSP(names ...string) []byte
- func NintendoDisc(id, title string, wii bool) []byte
- func PKG(kind uint16, contentID string) []byte
- func PS1(serial string) []byte
- func PS2(serial string) []byte
- func PS3(title, id string) []byte
- func PSP(title, id string) []byte
- func RPX() []byte
- func Raw(plain []byte) []byte
- func SFO(values ...[2]string) []byte
- func SNES(title string) []byte
- func Scrambled(size int) []byte
- func WAD(titleType uint32, code string) []byte
- func WBFS(header []byte) []byte
- func WIA(header []byte, discType uint32, rvz bool) []byte
- func WUA() []byte
- func WUD(code string) []byte
- func WUX(code string) []byte
- func XBE(title string, titleID uint32) []byte
- func XCI() []byte
- func XISO(base int, title string, titleID uint32) map[int][]byte
- type DiscFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CIA ¶
CIA wraps a program in an install package. flags go in the table of contents, and titleHigh is the high half of its title id.
func DOL ¶
DOL is a GameCube program with one text section, or with wii one that loads into the Wii's second bank of memory.
func DolphinCISO ¶
DolphinCISO packs a disc the way Dolphin's .ciso does: every block stored.
func MasterSystem ¶
MasterSystem is a Master System or, with gameGear, Game Gear cartridge.
func N64Swapped ¶
N64Swapped is the same in the byte-swapped .v64 order.
func NCCHUnflagged ¶
NCCHUnflagged is a program decrypted by a tool that left its NoCrypto flag unset: its extended header is plain, so its jump id is the program id.
func NintendoDisc ¶
NintendoDisc is the start of a GameCube disc, or with wii a Wii one.
func Raw ¶
Raw makes a raw image out of a plain one: each 2048-byte sector gets a 16-byte header (mode 1 style) and the rest of a 2352-byte frame.
func WAD ¶
WAD is a Wii install package whose title has this type (the high half of its id) and four-letter code.
func WIA ¶
WIA makes the headers of a .wia, or with rvz a .rvz, holding a disc whose first bytes are header. discType is 1 for a GameCube disc and 2 for a Wii one.