Skip to content

Commit

Permalink
General - Fix missing ADDON variable (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jun 13, 2024
1 parent ad0b3c6 commit eedb286
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 13 deletions.
8 changes: 7 additions & 1 deletion addons/accessory/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "script_component.hpp"

if (!hasInterface) exitWith {};
ADDON = false;

if (!hasInterface) exitWith {
ADDON = true;
};

#include "XEH_PREP.hpp"

Expand Down Expand Up @@ -41,3 +45,5 @@ GVAR(usageHash) = createHashMap;
false
}
] call CBA_fnc_addItemContextMenuOption;

ADDON = true;
4 changes: 2 additions & 2 deletions addons/diagnostic/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ GVAR(projectileMaxLines) = 20;
GVAR(projectileStartedDrawing) = false;
GVAR(projectileTrackedUnits) = [];

ADDON = true;

if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFile >> "EnableTargetDebug") == 1}) then {
INFO("EnableTargetDebug is enabled.");

Expand Down Expand Up @@ -71,3 +69,5 @@ if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFil
}];
};
};

ADDON = true;
4 changes: 3 additions & 1 deletion addons/disposable/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ ADDON = false;

#include "initSettings.inc.sqf"

if (configProperties [configFile >> "CBA_DisposableLaunchers"] isEqualTo []) exitWith {};
if (configProperties [configFile >> "CBA_DisposableLaunchers"] isEqualTo []) exitWith {
ADDON = true;
};

#include "XEH_PREP.hpp"

Expand Down
7 changes: 5 additions & 2 deletions addons/events/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ if (isServer) then {
#include "backwards_comp.inc.sqf"
#include "initSettings.inc.sqf"

ADDON = true;
if (!hasInterface) exitWith {
ADDON = true;
};

if (!hasInterface) exitWith {};
PREP(playerEvent);

GVAR(skipCheckingUserActions) = true;
Expand Down Expand Up @@ -95,3 +96,5 @@ GVAR(alt) = false;
private _states = [];
_states resize 20;
GVAR(userKeyStates) = _states apply {false};

ADDON = true;
6 changes: 4 additions & 2 deletions addons/help/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//#define DEBUG_MODE_FULL
#include "script_component.hpp"

if (!hasInterface) exitWith {};

ADDON = false;

if (!hasInterface) exitWith {
ADDON = true;
};

// bwc
FUNC(help) = BIS_fnc_help;

Expand Down
8 changes: 5 additions & 3 deletions addons/keybinding/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#include "script_component.hpp"
SCRIPT(XEH_preInit);

if (!hasInterface) exitWith {};
ADDON = false;

#include "XEH_PREP.hpp"
if (!hasInterface) exitWith {
ADDON = true;
};

ADDON = false;
#include "XEH_PREP.hpp"

// Load DIK to string conversion table.
with uiNamespace do {
Expand Down
8 changes: 6 additions & 2 deletions addons/optics/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ ADDON = false;

if (configProperties [configFile >> "CBA_PIPItems"] isEqualTo [] && {
configProperties [configFile >> "CBA_CarryHandleTypes"] isEqualTo []
}) exitWith {};
}) exitWith {
ADDON = true;
};

#include "XEH_PREP.hpp"

if (!hasInterface) exitWith {};
if (!hasInterface) exitWith {
ADDON = true;
};

#include "initKeybinds.inc.sqf"

Expand Down

0 comments on commit eedb286

Please sign in to comment.