aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2014-06-15 16:27:20 +0200
committerMemphiz <memphis@machzwo.de>2014-06-15 16:27:53 +0200
commit168dcc7cc0ec0db62f6bae1598cda283c96d2a8c (patch)
treee9e8be9ebbd5404cbee0f84ee5242ef78a698ccc
parent1ac322896f275ad6712332f56de46aabb812e8ee (diff)
[settings] - add settingscondition OsxIsSnowLeopard
-rw-r--r--xbmc/settings/Settings.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/xbmc/settings/Settings.cpp b/xbmc/settings/Settings.cpp
index fccd54e6cf..b09d61b97e 100644
--- a/xbmc/settings/Settings.cpp
+++ b/xbmc/settings/Settings.cpp
@@ -91,6 +91,10 @@
#include "utils/AMLUtils.h"
#endif
+#if defined(TARGET_DARWIN_OSX)
+#include "osx/DarwinUtils.h"
+#endif// defined(TARGET_DARWIN_OSX)
+
#define SETTINGS_XML_FOLDER "special://xbmc/system/settings/"
#define SETTINGS_XML_ROOT "settings"
@@ -926,6 +930,10 @@ void CSettings::InitializeConditions()
if (g_sysinfo.IsAppleTV2())
m_settingsManager->AddCondition("isappletv2");
#endif
+#ifdef TARGET_DARWIN_OSX
+ if (DarwinIsSnowLeopard())
+ m_settingsManager->AddCondition("osxissnowleopard");
+#endif
#if defined(TARGET_WINDOWS) && defined(HAS_DX)
m_settingsManager->AddCondition("has_dx");
m_settingsManager->AddCondition("hasdxva2");