mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
version check handle minor versions below 10
This commit is contained in:
@ -4,13 +4,14 @@
|
|||||||
private _aceWhitelist = missionNamespace getVariable ["ACE_Version_Whitelist", []];
|
private _aceWhitelist = missionNamespace getVariable ["ACE_Version_Whitelist", []];
|
||||||
private _files = CBA_common_addons select {
|
private _files = CBA_common_addons select {
|
||||||
(_x select [0,3] != "a3_") &&
|
(_x select [0,3] != "a3_") &&
|
||||||
{_x select [0,4] != "ace_"} &&
|
{_x select [0,4] != "ace_"} &&
|
||||||
{!((toLower _x) in _aceWhitelist)}
|
{!((toLower _x) in _aceWhitelist)}
|
||||||
};
|
};
|
||||||
|
|
||||||
private _versions = [];
|
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];
|
_versions set [_forEachIndex, _version];
|
||||||
} forEach _files;
|
} forEach _files;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user