Check Mac OS X version on startup and give up if we're running something older than 10.5
parent
c7c1f3903f
commit
826be7530e
|
@ -25,6 +25,14 @@ NS_ENDHANDLER
|
||||||
|
|
||||||
void early_init(void)
|
void early_init(void)
|
||||||
{
|
{
|
||||||
|
SInt32 version;
|
||||||
|
Gestalt(gestaltSystemVersion,&version);
|
||||||
|
if(version <= 0x1050)
|
||||||
|
{
|
||||||
|
printf("Factor requires Mac OS X 10.5 or later.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
[[NSAutoreleasePool alloc] init];
|
[[NSAutoreleasePool alloc] init];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue