mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix: check files script, order in activatedAddons is not guaranteed
This commit is contained in:
parent
b80602fbae
commit
aa6c3ddf2c
@ -4,7 +4,7 @@
|
|||||||
* Compares version numbers of PBOs and DLLs.
|
* Compares version numbers of PBOs and DLLs.
|
||||||
*
|
*
|
||||||
* Argument:
|
* Argument:
|
||||||
* 0: Mode (Number)
|
* None.
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
@ -19,14 +19,8 @@ _version = getText (configFile >> "CfgPatches" >> "ace_main" >> "versionStr");
|
|||||||
|
|
||||||
diag_log text format ["[ACE]: ACE is version %1.", _version];
|
diag_log text format ["[ACE]: ACE is version %1.", _version];
|
||||||
|
|
||||||
private ["_addons", "_index"];
|
private "_addons";
|
||||||
|
|
||||||
_addons = activatedAddons;
|
_addons = activatedAddons;
|
||||||
|
|
||||||
// speed up search. all ace pbos are loaded after ace_main.
|
|
||||||
_index = _addons find "ace_main";
|
|
||||||
reverse _addons;
|
|
||||||
_addons resize (count _addons - _index);
|
|
||||||
_addons = [_addons, {_this find "ace_" == 0}] call FUNC(filter);
|
_addons = [_addons, {_this find "ace_" == 0}] call FUNC(filter);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user