From 168dcc7cc0ec0db62f6bae1598cda283c96d2a8c Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sun, 15 Jun 2014 16:27:20 +0200 Subject: [settings] - add settingscondition OsxIsSnowLeopard --- xbmc/settings/Settings.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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"); -- cgit v1.2.3