PDA

View Full Version : Is An Extension Loaded?



UrsaTeddy
August 12th, 2020, 04:21
Greetings All,

So I have been creating extensions since I purchased FG a couple of months ago.

During this time I have had need to check if certain functions were loaded from different extensions and this is straight forward with


if <Name of Script> ~= nil then

Where <Name of Script> is the name tag when the script is loaded in the extension.xml file.

However I would like to be able to actually check if a whole Extension has been loaded.

Is this possible?

damned
August 12th, 2020, 04:43
https://www.fantasygrounds.com/refdoc/Extension.xcp#getExtensions

UrsaTeddy
August 12th, 2020, 06:59
https://www.fantasygrounds.com/refdoc/Extension.xcp#getExtensions

Thank you ... I assume that the name is the <name /> field in the extension.xml file and that it will return nil if the extension is not one of those loaded?