Skip to content

Commit

Permalink
Merge pull request #290 from CBATeam/fixVersioning
Browse files Browse the repository at this point in the history
Fix versioning
  • Loading branch information
Killswitch00 committed Mar 6, 2016
2 parents 16f9647 + e3a7ec9 commit b6fa7ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/versioning/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ if (!SLX_XEH_DisableLogging) then {
_mod = _x select 0;
_dependencyInfo = _x select 1;
_class = (configFile >> "CfgPatches" >> (_dependencyInfo select 0));
missionNamespace setVariable ["_dependencyIsPresent", _dependencyInfo select 2];
private _dependencyIsPresent = call compile format ["%1", (_dependencyInfo select 2)];
if ((isNil "_dependencyIsPresent") || {!(_dependencyIsPresent isEqualType false)}) then {
//https://dev.withsix.com/issues/74516 - The code could return non-bool, if "true" is converted to "1" durring binarization
WARNING("Versioning conditional return is bad" + str _x);
_dependencyIsPresent = true;
};
if (_dependencyIsPresent) then {
if !(isClass(_class)) then {
format["WARNING: %1 requires %2 (@%3) at version %4 (or higher). You have none.", _key, _dependencyInfo select 0, _mod, _dependencyInfo select 1] spawn _f;
Expand Down

0 comments on commit b6fa7ef

Please sign in to comment.