Skip to content

Commit

Permalink
Update fnc_isModLoaded.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Dec 31, 2023
1 parent b4b6e4d commit ba7fb63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/common/functions/fnc_isModLoaded.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

params [["_modName", "", [""]]];

private _return = GVAR(isModLoadedCache) get (toLowerANSI _modName);
private _key = toLowerANSI _modName;
private _return = GVAR(isModLoadedCache) get _key;

if (isNil "_return") then {
_return = isClass (configFile >> "CfgPatches" >> _modName);
GVAR(isModLoadedCache) set [_modName, _return];
GVAR(isModLoadedCache) set [_key, _return];
};

_return

0 comments on commit ba7fb63

Please sign in to comment.