AmendHub

Download:

nulleric

/

Fix-a-Fork

/

amendments

/

10

learned mar


eric made amendment 10 about 1 year ago
--- main.c Thu Nov 9 08:29:03 2023 +++ main.c Thu Nov 9 08:38:38 2023 @@ -92,6 +92,8 @@ OSErr openFile(unsigned char *fName, short fRefNum, sh found = true; else if(isZip()) found = true; + else if(isMar()) + found = true; else if(isCpt()) found = true; @@ -171,6 +173,12 @@ Boolean isCpt() char magic[] = {0x01, 0x00}; return magicCheck(magic, 0, 'PACT', 'CPCT'); } + +Boolean isMar() +{ + return magicCheck("MAR", 0, 'MARf', 'MARc'); +} + Boolean isZip() { return magicCheck("PK", 0, 'PACT', 'CPCT'); --- main.h Thu Nov 9 08:29:23 2023 +++ main.h Thu Nov 9 08:38:59 2023 @@ -23,5 +23,6 @@ Boolean isBinHex4(); Boolean isSit5(); Boolean isSit15(); Boolean isZip(); +Boolean isMar(); Boolean isCpt(); Boolean isDsk_1024();