[Opensim-dev] Test before you call OSSL function

Kevin Cozens kevin at ve3syb.ca
Tue Oct 15 02:44:26 UTC 2019


On 2019-10-14 5:04 p.m., Melanie wrote:
> The internal code is already able to determine permissions from a string
> version if the osFunction name, exposing that would be quite trivial.

The way I would approach the problem is to make a string by append "Allow_" 
to the start of a function name and use that string to get the permission 
setting from the OSSL ini file. It only requires about three or four lines 
of C# code.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/               | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
                                     | that's why we're powerful"
Owner of Elecraft K2 #2172          |
#include <disclaimer/favourite>     |             --Chris Hardwick


More information about the Opensim-dev mailing list