nulleric
/Fix-a-Fork
/amendments
/8
learned stuffit5
eric made amendment 8 about 1 year ago
--- main.c Thu Nov 9 08:15:36 2023
+++ main.c Thu Nov 9 08:18:06 2023
@@ -86,6 +86,8 @@ OSErr openFile(unsigned char *fName, short fRefNum, sh
// Check for magic in first 1024 bytes
if(isBinHex4())
found = true;
+ else if(isSit5())
+ found = true;
else if(isSit15())
found = true;
else if(isCpt())
@@ -148,6 +150,11 @@ Boolean isBinHex4()
Boolean isSit15()
{
return magicCheck("SIT!", 0, 'SIT!', 'SIT!');
+}
+
+Boolean isSit5()
+{
+ return magicCheck("StuffIt (c)", 0, 'SITD', 'SIT!');
}
// Disk Copy 6
--- main.h Thu Nov 9 08:13:01 2023
+++ main.h Thu Nov 9 08:17:22 2023
@@ -20,6 +20,7 @@ pascal OSErr DoOpenDoc(AppleEvent *event, AppleEvent *
// checks
Boolean magicCheck(char *magic, short offset, OSType type, OSType creator);
Boolean isBinHex4();
+Boolean isSit5();
Boolean isSit15();
Boolean isCpt();
Boolean isDsk_1024();