mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 14:42:23 +00:00
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:
parent
8e5702ef36
commit
532b642222
1 changed files with 0 additions and 30 deletions
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue