mirror of
https://github.com/christopherkobayashi/dc42tools.git
synced 2024-06-03 11:29:42 +00:00
Remove one consistency check (only valid for 1440k images) and add missing image types.
This commit is contained in:
parent
d15664c9fe
commit
f0251657eb
14
makedc42.c
14
makedc42.c
|
@ -68,12 +68,6 @@ int main(int argc, char **argv)
|
||||||
fclose(inputfile);
|
fclose(inputfile);
|
||||||
|
|
||||||
/* consistency checks */
|
/* consistency checks */
|
||||||
check = (file_buffer[0] << 8) + file_buffer[1];
|
|
||||||
if (check != 0x4c4b) {
|
|
||||||
printf("%s: boot block failed consistency check (%x)\n", argv[1], check);
|
|
||||||
free(file_buffer);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
check = (file_buffer[0x400] << 8) + file_buffer[0x401];
|
check = (file_buffer[0x400] << 8) + file_buffer[0x401];
|
||||||
if (check != 0x4244) {
|
if (check != 0x4244) {
|
||||||
printf("%s: VIB failed consistency check (%x)\n", argv[1], check);
|
printf("%s: VIB failed consistency check (%x)\n", argv[1], check);
|
||||||
|
@ -98,6 +92,14 @@ int main(int argc, char **argv)
|
||||||
header.encoding = gcr_dsdd;
|
header.encoding = gcr_dsdd;
|
||||||
header.format = 0x22;
|
header.format = 0x22;
|
||||||
break;
|
break;
|
||||||
|
case 737280:
|
||||||
|
header.encoding = mfm_dsdd;
|
||||||
|
header.format = 0x22;
|
||||||
|
break;
|
||||||
|
case 409600:
|
||||||
|
header.encoding = gcr_ssdd;
|
||||||
|
header.format = 0x02;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf("%s: unknown size, not doing format/encoding\n", argv[1]);
|
printf("%s: unknown size, not doing format/encoding\n", argv[1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user