Let's do this version check again.
This commit is contained in:
parent
db1fc9019b
commit
d6c7e7d652
|
@ -51,7 +51,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <CarbonCore/OSUtils.h>
|
#import <AppKit/AppKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Nvidia drivers >= v302 will check if the application exports a global
|
// Nvidia drivers >= v302 will check if the application exports a global
|
||||||
|
@ -217,14 +217,12 @@ bool DolphinApp::OnInit()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
SInt32 versMaj, versMin;
|
if (floor(NSAppKitVersionNumber) < NSAppKitVersionNumber10_7)
|
||||||
Gestalt(gestaltSystemVersionMajor, &versMaj);
|
|
||||||
Gestalt(gestaltSystemVersionMinor, &versMin);
|
|
||||||
if (!(versMaj >= 10 && versMin >= 7))
|
|
||||||
{
|
{
|
||||||
PanicAlertT("Hi,\n\nDolphin requires OS X 10.7 or greater.\n"
|
PanicAlertT("Hi,\n\nDolphin requires OS X 10.7 or greater.\n"
|
||||||
"Unfortunately you're running an old version of OS X.\n"
|
"Unfortunately you're running an old version of OS X.\n"
|
||||||
"Please upgrade to 10.7 or greater to use Dolphin.\n\n"
|
"The last Dolphin version to support OS X 10.6 is Dolphin 3.5\n"
|
||||||
|
"Please upgrade to 10.7 or greater to use the newest Dolphin version.\n\n"
|
||||||
"Sayonara!\n");
|
"Sayonara!\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue