mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8ca5263f18
* 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>
21 lines
471 B
Plaintext
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]
|