Skip to content

Commit

Permalink
use macro to guarantee consistent loading order between different con…
Browse files Browse the repository at this point in the history
…figs
  • Loading branch information
commy2 committed Feb 17, 2016
1 parent 08b5ca3 commit 760e58e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/xeh/fnc_initDisplay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if !(_event isEqualTo "") then {
private ["_event", "_className"];
_args call compile getText _x;
} forEach configProperties [_x >> XEH_FORMAT_CONFIG_NAME(_event) >> _className, "isText _x"];
} forEach [configFile, campaignConfigFile, missionConfigFile];
} forEach XEH_MAIN_CONFIGS;
};
2 changes: 1 addition & 1 deletion addons/xeh/fnc_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ GVAR(allEventHandlers) = [];

{
GVAR(allEventHandlers) append (_x call CBA_fnc_compileEventHandlers);
} forEach [configFile, campaignConfigFile, missionConfigFile];
} forEach XEH_MAIN_CONFIGS;

#ifdef DEBUG_MODE_FULL
XEH_LOG("XEH: Compiling XEH END");
Expand Down
2 changes: 2 additions & 0 deletions addons/xeh/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#include "script_xeh.hpp"

#define XEH_MAIN_CONFIGS [configFile, campaignConfigFile, missionConfigFile]

#undef XEH_ENABLED
#define XEH_ENABLED class EventHandlers { class XEH_CLASS: XEH_CLASS {}; }; SLX_XEH_DISABLED = 0

Expand Down

0 comments on commit 760e58e

Please sign in to comment.