Get rid of checkOS() and checkDVD()

Former is already handled by cmake via -mmacosx-version-min=
and the latter is just a stub.
This commit is contained in:
dhewg 2012-01-03 18:51:39 +01:00
parent 8e5702ef36
commit 532b642222

View file

@ -61,7 +61,6 @@ FPU_EXCEPTION_DIVIDE_BY_ZERO | \
@interface DOOMController (Private)
- (void)quakeMain;
- (BOOL)checkOS;
@end
@implementation DOOMController
@ -273,16 +272,6 @@ extern void CL_Quit_f(void);
Posix_EarlyInit( );
#ifndef _DEBUG
if ( [self checkOS] == FALSE) {
common->Quit();
}
if ( [self checkDVD] == FALSE) {
common->Quit();
}
#endif
// need strncmp, can't use idlib before init
#undef strncmp
// Finder passes the process serial number as only argument after the program path
@ -311,25 +300,6 @@ extern void CL_Quit_f(void);
[pool release];
}
- (BOOL)checkOS
{
OSErr err;
long gestaltOSVersion;
err = Gestalt(gestaltSystemVersion, &gestaltOSVersion);
if ( err || gestaltOSVersion < 0x1038 ) {
NSBundle *thisBundle = [ NSBundle mainBundle ];
NSString *messsage = [ thisBundle localizedStringForKey:@"InsufficientOS" value:@"No translation" table:nil ];
NSRunAlertPanel(@GAME_NAME, messsage, nil, nil, nil);
return FALSE;
}
return TRUE;
}
- (BOOL)checkDVD
{
return TRUE;
}
@end
/*