Skip to content

Commit

Permalink
Common - Use CBA addons instead of activatedAddons (#6802)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
dedmen authored and PabstMirror committed Feb 14, 2019
1 parent 7795294 commit d54a0e5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions addons/common/scripts/checkVersionNumber.sqf
Original file line number Diff line number Diff line change
@@ -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 = [];
{
Expand Down

0 comments on commit d54a0e5

Please sign in to comment.