Skip to content

Commit

Permalink
Merge pull request #6872 from acemod/fixVersionCheck
Browse files Browse the repository at this point in the history
version check handle minor versions below 10
  • Loading branch information
commy2 authored Mar 16, 2019
2 parents 2ec8686 + 6ffe4e5 commit b71c5a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/common/scripts/checkVersionNumber.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
private _aceWhitelist = missionNamespace getVariable ["ACE_Version_Whitelist", []];
private _files = CBA_common_addons select {
(_x select [0,3] != "a3_") &&
{_x select [0,4] != "ace_"} &&
{_x select [0,4] != "ace_"} &&
{!((toLower _x) in _aceWhitelist)}
};

private _versions = [];
{
private _version = parseNumber getText (configFile >> "CfgPatches" >> _x >> "version");
getText (configFile >> "CfgPatches" >> _x >> "version") splitString "." params [["_major", "0"], ["_minor", "0"]];
private _version = parseNumber _major + parseNumber _minor/100;
_versions set [_forEachIndex, _version];
} forEach _files;

Expand Down

0 comments on commit b71c5a8

Please sign in to comment.