Req System.Platform boolean condition for RPi
#1
In order to make an add-on setting visible only when running on a Raspberry Pi, it would be useful to have a boolean condition to test for that platform.

There are currently System.Platform.Android and System.Platform.ATV2 booleans so it seems logical that there should be one for Raspberry Pi? Perhaps called System.Platform.RPi?

I appreciate that there may be good reasons not to have this, but if not I would happily make a pull request if I could get some pointers. At first glance it seems I would only need to touch GUIInfoManager.cpp and GUIInfoManager.h?

I see there are already TARGET_RASPBERRY_PI ifdefs in various places.
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply
#2
do a pr - adapt CGUIInfoManager::GetBool and CGUIInfoManager::TranslateSingleString - just see what is done for "SYSTEM_PLATFORM_ANDROID" ... this should do it...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
Thumbs Up 
Will do. Thanks for the info.

EDIT: Pull request 2973 submitted.
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply

Logout Mark Read Team Forum Stats Members Help
System.Platform boolean condition for RPi0