mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Common - Use CBA addons instead of activatedAddons (#6802)
* Use CBA addons instead of activatedAddons * Better checks * Betterest checks * Delay call to toLower until needed * Apply suggestions from code review Co-Authored-By: dedmen <dedmen@users.noreply.github.com>
This commit is contained in:
parent
afd957f1e7
commit
598738c22f
@ -1,13 +1,12 @@
|
||||
// by commy2
|
||||
#include "script_component.hpp"
|
||||
|
||||
private _files = [];
|
||||
|
||||
{
|
||||
if (_x find "a3_" != 0 && {_x find "ace_" != 0} && {!(toLower _x in (missionNamespace getVariable ["ACE_Version_Whitelist", []]))}) then {
|
||||
_files pushBack _x;
|
||||
};
|
||||
} forEach activatedAddons;
|
||||
private _aceWhitelist = missionNamespace getVariable ["ACE_Version_Whitelist", []];
|
||||
private _files = CBA_common_addons select {
|
||||
(_x select [0,3] != "a3_") &&
|
||||
{_x select [0,4] != "ace_"} &&
|
||||
{!((toLower _x) in _aceWhitelist)}
|
||||
};
|
||||
|
||||
private _versions = [];
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user