Req System.Platform boolean condition for RPi - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9) +--- Thread: Req System.Platform boolean condition for RPi (/showthread.php?tid=168409) |
System.Platform boolean condition for RPi - Leopold - 2013-07-04 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. RE: System.Platform boolean condition for RPi - Memphiz - 2013-07-04 do a pr - adapt CGUIInfoManager::GetBool and CGUIInfoManager::TranslateSingleString - just see what is done for "SYSTEM_PLATFORM_ANDROID" ... this should do it... RE: System.Platform boolean condition for RPi - Leopold - 2013-07-04 Will do. Thanks for the info. EDIT: Pull request 2973 submitted. |