#include "script_component.hpp" /* * Author: Glowbal, GhostIsSpooky * Check in CfgPatches if modification is loaded * * Arguments: * 0: Mod Name or Classname of the mod in CfgPatches * * Return Value: * if modification is loaded * * Example: * ["class"] call ace_common_fnc_isModLoaded * * Public: Yes */ params [["_modName", "", [""]]]; private _return = GVAR(isModLoadedCache) get _modName; if (isNil "_return") then { _return = isClass (configFile >> "CfgPatches" >> _modName); GVAR(isModLoadedCache) set [_modName, _return]; }; _return