nulleric
/Fix-a-Fork
/amendments
/24
Update alert to StopAlert.
CheckFileExt to const char*.
eric made amendment 24 about 1 year ago
--- main.c Fri Nov 10 11:22:49 2023
+++ main.c Fri Nov 10 17:07:12 2023
@@ -144,7 +144,7 @@ OSErr openFile(unsigned char *fName, short fRefNum, sh
// else unkown type/creator
} else {
ParamText("\pUnknown file type for ", fName, "\p", "\p");
- Alert(128, nil);
+ StopAlert(128, nil);
}
return FSClose(fRefNum);
}
@@ -266,7 +266,7 @@ Boolean magicCheck(char *magic, short len, short offse
return true;
}
-Boolean CheckFileExt(char *ext)
+Boolean CheckFileExt(const char *ext)
{
if(strcmp(ext, "1st")) { gType = 'TEXT'; gCreator = 'ttxt'; return true; } // Text - Readme
else if(strcmp(ext, "669")) { gType = '6669'; gCreator = 'SNPL'; return true; } // 669 - MOD
--- main.h Fri Nov 10 11:22:24 2023
+++ main.h Fri Nov 10 16:50:28 2023
@@ -29,5 +29,5 @@ Boolean isZip();
Boolean isMar();
Boolean isCpt();
Boolean isDsk_1024();
-Boolean CheckFileExt(char *ext);
+Boolean CheckFileExt(const char *ext);
short strlen(const char *str);