[hatari-devel] Small patch to add some partition IDs for auto-detection of byteswapped images |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Hi
attached is a small patch that adds some more partition types to the detection ('F32', 'MIX' and 'UNX'). There are also 2 more types which are mentioned in the XHDI specification ('QWA' and 'MAC'), but i have never seen them, and i think filesystem drivers for them don't exist, but the above ones are actually in use.
|
diff -r f4a9180b6858 src/hdc.c --- a/src/hdc.c Mon Dec 03 13:38:12 2018 +0100 +++ b/src/hdc.c Wed Dec 05 10:43:51 2018 +0100 @@ -668,6 +668,9 @@ || (bootsector[0x1c6] == 'X' && bootsector[0x1c8] == 'M' && bootsector[0x1c9] == 'G') || (bootsector[0x1c6] == 'L' && bootsector[0x1c8] == 'X' && bootsector[0x1c9] == 'N') || (bootsector[0x1c6] == 'R' && bootsector[0x1c8] == 'W' && bootsector[0x1c9] == 'A') + || (bootsector[0x1c6] == 'F' && bootsector[0x1c8] == '2' && bootsector[0x1c9] == '3') + || (bootsector[0x1c6] == 'U' && bootsector[0x1c8] == 'X' && bootsector[0x1c9] == 'N') + || (bootsector[0x1c6] == 'M' && bootsector[0x1c8] == 'X' && bootsector[0x1c9] == 'I') || (bootsector[0x1c6] == 'S' && bootsector[0x1c8] == 'P' && bootsector[0x1c9] == 'W'); if (*pIsByteSwapped)
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |