From f248e81c65524eb5fcb56feb5588900138e2f61c Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 16 Mar 2019 11:00:20 +0100 Subject: [PATCH 1/2] version check handle minor versions below 10 --- addons/common/scripts/checkVersionNumber.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/common/scripts/checkVersionNumber.sqf b/addons/common/scripts/checkVersionNumber.sqf index 77af9572f27..6897026f25b 100644 --- a/addons/common/scripts/checkVersionNumber.sqf +++ b/addons/common/scripts/checkVersionNumber.sqf @@ -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", "_minor"]; + private _version = parseNumber _major + parseNumber _minor/100; _versions set [_forEachIndex, _version]; } forEach _files; From df8b23b9ba6433429ef6cf48933745807bab871b Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 16 Mar 2019 11:05:01 +0100 Subject: [PATCH 2/2] version check handle minor versions below 10 --- addons/common/scripts/checkVersionNumber.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/scripts/checkVersionNumber.sqf b/addons/common/scripts/checkVersionNumber.sqf index 6897026f25b..5d4b1734e4f 100644 --- a/addons/common/scripts/checkVersionNumber.sqf +++ b/addons/common/scripts/checkVersionNumber.sqf @@ -10,7 +10,7 @@ private _files = CBA_common_addons select { private _versions = []; { - getText (configFile >> "CfgPatches" >> _x >> "version") splitString "." params ["_major", "_minor"]; + getText (configFile >> "CfgPatches" >> _x >> "version") splitString "." params [["_major", "0"], ["_minor", "0"]]; private _version = parseNumber _major + parseNumber _minor/100; _versions set [_forEachIndex, _version]; } forEach _files;