ACE3/addons/common/functions/fnc_isModLoaded.sqf
johnb432 8ca5263f18
Common - Make FUNC(isModLoaded) case-insensitive (#9704)
* Update fnc_isModLoaded.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update fnc_isModLoaded.sqf

---------

Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-12-31 17:45:01 -08:00

21 lines
471 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal, Grim
* Check in CfgPatches if modification is loaded
*
* Arguments:
* 0: Classname of the mod in CfgPatches <STRING>
*
* Return Value:
* If modification is loaded <BOOL>
*
* Example:
* "class" call ace_common_fnc_isModLoaded
*
* Public: Yes
*/
params [["_modName", "", [""]]];
GVAR(isModLoadedCache) getOrDefaultCall [toLowerANSI _modName, {isClass (configFile >> "CfgPatches" >> _modName)}, true]