ACE3/addons/common/functions/fnc_isModLoaded.sqf

21 lines
471 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-09-18 19:12:40 +00:00
/*
* Author: Glowbal, Grim
* Check in CfgPatches if modification is loaded
2015-01-16 23:21:47 +00:00
*
2015-09-18 19:12:40 +00:00
* Arguments:
* 0: Classname of the mod in CfgPatches <STRING>
2015-09-18 19:12:40 +00:00
*
* Return Value:
* If modification is loaded <BOOL>
2015-09-18 19:12:40 +00:00
*
* Example:
* "class" call ace_common_fnc_isModLoaded
*
2015-09-18 19:12:40 +00:00
* Public: Yes
2015-01-16 23:21:47 +00:00
*/
2015-12-12 16:26:47 +00:00
params [["_modName", "", [""]]];
2015-09-20 14:40:49 +00:00
GVAR(isModLoadedCache) getOrDefaultCall [toLowerANSI _modName, {isClass (configFile >> "CfgPatches" >> _modName)}, true]