Kodi Community Forum
Check Xbmc build for visibility - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Check Xbmc build for visibility (/showthread.php?tid=99736)



Check Xbmc build for visibility - pecinko - 2011-04-20

Guys,

is there a way for skin to check Xbmc build and show/hide options based on that?

Specifically, hide Recently added option or show a link to MyVideo.xml if a user is running 10.1

Thanks.


- Jezz_X - 2011-04-20

nope not really but they are working on min/max version things too stop users being able to install a version that does not work with it. as well as getting a seperate repo for normal dharma and pre-eden stuff so dharma users can't get stuff that doesn't work for them.


you could maybe play with a string compare and System.BuildVersion to hack it though


- Hitcher - 2011-04-20

More info here -

http://forum.xbmc.org/showthread.php?tid=95244


- pecinko - 2011-04-20

Thanks guys, will try to play with string compare.

I'll post results if I achieve something - not very good at string comparing, though :-)


- pecinko - 2011-04-20

If anyone needs it

SubString(System.BuildVersion,10.1,Left)

returns true for Dharma 10.1