diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-03-14 15:46:27 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-03-14 15:46:27 -0500 |
| commit | d6c7e7d652c19701c4687b780bc92cb18daf18eb (patch) | |
| tree | 4ce7d118fe1e9b4e8327551689cdf9f6fa881294 /Source/Core | |
| parent | db1fc9019b37ca770b8febeb19ba1c551ce16bc6 (diff) | |
Let's do this version check again.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/Main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index d7bc40a149..d3fb3856ff 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -51,7 +51,7 @@ #endif #ifdef __APPLE__ -#include <CarbonCore/OSUtils.h> +#import <AppKit/AppKit.h> #endif // Nvidia drivers >= v302 will check if the application exports a global @@ -217,14 +217,12 @@ bool DolphinApp::OnInit() } #endif #ifdef __APPLE__ - SInt32 versMaj, versMin; - Gestalt(gestaltSystemVersionMajor, &versMaj); - Gestalt(gestaltSystemVersionMinor, &versMin); - if (!(versMaj >= 10 && versMin >= 7)) + if (floor(NSAppKitVersionNumber) < NSAppKitVersionNumber10_7) { PanicAlertT("Hi,\n\nDolphin requires OS X 10.7 or greater.\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"); return false; } |
