Add boot file and game type to output
This commit is contained in:
parent
558662f7cf
commit
457d8106ef
|
|
@ -171,6 +171,7 @@ func (b *BlockFileHeader) String() string {
|
|||
return fmt.Sprintf("BlockFileHeader FileNumber:%d FileId:%d FileName:%q FileAddress:$%04X FileSize:%d FileType:%d",
|
||||
b.FileNumber,
|
||||
b.FileId,
|
||||
// TODO: use BytesToAscii()
|
||||
string(b.FileName[:]),
|
||||
b.FileAddress,
|
||||
b.FileSize,
|
||||
|
|
|
|||
7
rom.go
7
rom.go
|
|
@ -85,11 +85,14 @@ type RomHeader struct {
|
|||
}
|
||||
|
||||
func (header *RomHeader) Info() string {
|
||||
return fmt.Sprintf("Name: %3s Licensee: $%02X - %s\nMFG Date: %s",
|
||||
return fmt.Sprintf("Name: %3s Type: %q ($%02X) Licensee: $%02X - %s\nMFG Date: %s BootFileId: %d",
|
||||
header.GameName,
|
||||
header.GameType,
|
||||
header.GameType,
|
||||
header.Licensee,
|
||||
LicenseeEnName(header.Licensee),
|
||||
header.ManufacturingDate,
|
||||
header.BootFileId,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -247,7 +250,7 @@ func (file *RomFile) Info() string {
|
|||
if crc != file.CRC {
|
||||
crcStatus = fmt.Sprintf("FAIL [$%04X]", crc)
|
||||
}
|
||||
return fmt.Sprintf("%02d $%02X %q %s %5d $%04X-$%04X Hidden:%t CRC:$%04X (%s)",
|
||||
return fmt.Sprintf("%02d $%02X '%s' %s %5d $%04X-$%04X Hidden:%t CRC:$%04X (%s)",
|
||||
file.Number,
|
||||
file.Id,
|
||||
file.Name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue