superg / redumper

Low level CD dumper utility
GNU General Public License v3.0
179 stars 16 forks source link

Redumper does not output Sega Dreamcast header information in the log. #137

Open Emumaddog opened 2 months ago

Emumaddog commented 2 months ago

Unlike DIC, Redumper does not output header information for Sega Dreamcast GD-ROMs in its log. Header is the 0000-00FF section of LBA 0/first sector of the data track. Same information is contained in the first sector of track03.

For MilCD, header information should be contained in the first sector of the 2nd session, but on the region 0018-0117. Not sure if all of them are compliant to this, but checked about 20 of those that exist in Redump DB and all are like that. Header always (to my knowledge...) starts with "SEGA SEGAKATANA", if you need to add an additional sanity check.

Example DIC output in maininfo.txt: ========== Sega Header ========== ========== LBA[000000, 0000000]: Main Channel ========== +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F 0000 : 53 45 47 41 20 53 45 47 41 4B 41 54 41 4E 41 20 SEGA SEGAKATANA 0010 : 53 45 47 41 20 45 4E 54 45 52 50 52 49 53 45 53 SEGA ENTERPRISES 0020 : 43 39 45 35 20 47 44 2D 52 4F 4D 31 2F 31 20 20 C9E5 GD-ROM1/1
0030 : 4A 20 20 20 20 20 20 20 34 37 42 42 41 31 30 20 J 47BBA10 0040 : 48 44 52 2D 30 30 30 37 20 20 56 31 2E 30 30 39 HDR-0007 V1.009 0050 : 31 39 39 39 30 33 31 32 20 20 20 20 20 20 20 20 19990312
0060 : 31 53 54 5F 52 45 41 44 2E 42 49 4E 20 20 20 20 1ST_READ.BIN
0070 : 53 45 47 41 20 45 4E 54 45 52 50 52 49 53 45 53 SEGA ENTERPRISES 0080 : 54 48 45 20 48 4F 55 53 45 20 4F 46 20 54 48 45 THE HOUSE OF THE 0090 : 20 44 45 41 44 20 32 20 20 20 20 20 20 20 20 20 DEAD 2
00A0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00B0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00C0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00D0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00E0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00F0 : 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

Example of MilCD header in text/hex:  F)" SEGA SEGAKATANA SEGA ENTERPRISESB6D8 CD-ROM1/1 JUE E000F10 IND-234360V1.00020221111 1ST_READ.BIN WAVE Indie Sampler 1

00 FF FF FF FF FF FF FF FF FF FF 00 46 29 22 02 00 00 09 00 00 00 09 00 53 45 47 41 20 53 45 47 41 4B 41 54 41 4E 41 20 53 45 47 41 20 45 4E 54 45 52 50 52 49 53 45 53 42 36 44 38 20 43 44 2D 52 4F 4D 31 2F 31 20 20 4A 55 45 20 20 20 20 20 45 30 30 30 46 31 30 20 49 4E 44 2D 32 33 34 33 36 30 56 31 2E 30 30 30 32 30 32 32 31 31 31 31 00 00 00 00 00 00 00 00 31 53 54 5F 52 45 41 44 2E 42 49 4E 20 20 20 20 57 41 56 45 00 00 00 00 00 00 00 00 00 00 00 00 49 6E 64 69 65 20 53 61 6D 70 6C 65 72 20 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00