mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-05-31 00:51:14 +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)
|
@interface DOOMController (Private)
|
||||||
- (void)quakeMain;
|
- (void)quakeMain;
|
||||||
- (BOOL)checkOS;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation DOOMController
|
@implementation DOOMController
|
||||||
|
@ -273,16 +272,6 @@ extern void CL_Quit_f(void);
|
||||||
|
|
||||||
Posix_EarlyInit( );
|
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
|
// need strncmp, can't use idlib before init
|
||||||
#undef strncmp
|
#undef strncmp
|
||||||
// Finder passes the process serial number as only argument after the program path
|
// 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];
|
[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
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue