diff options
author | Memphiz <memphis@machzwo.de> | 2014-06-11 15:27:47 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2014-06-11 15:27:47 +0200 |
commit | 80b5cfbfd05f2d61b9b4a568f48c053494e62348 (patch) | |
tree | 921d55d6cff171b7b0ac9812209ed6ba744c3d7d | |
parent | 51f50bb404ddcf27dccd7e40249753e7382a2d0d (diff) |
[settings] - add settingscondition OsxIsSnowLeopard
-rw-r--r-- | xbmc/settings/SettingConditions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/settings/SettingConditions.cpp b/xbmc/settings/SettingConditions.cpp index ff10d49601..d61dc50804 100644 --- a/xbmc/settings/SettingConditions.cpp +++ b/xbmc/settings/SettingConditions.cpp @@ -43,6 +43,9 @@ #endif // defined(HAS_LIBAMCODEC) #include "utils/SystemInfo.h" #include "windowing/WindowingFactory.h" +#if defined(TARGET_DARWIN_OSX) +#include "osx/DarwinUtils.h" +#endif// defined(TARGET_DARWIN_OSX) bool AddonHasSettings(const std::string &condition, const std::string &value, const CSetting *setting) { @@ -258,6 +261,10 @@ void CSettingConditions::Initialize() if (g_sysinfo.IsAppleTV2()) m_simpleConditions.insert("isappletv2"); #endif +#ifdef TARGET_DARWIN_OSX + if (DarwinIsSnowLeopard()) + m_simpleConditions.insert("osxissnowleopard"); +#endif #if defined(TARGET_WINDOWS) && defined(HAS_DX) m_simpleConditions.insert("has_dx"); m_simpleConditions.insert("hasdxva2"); |