From c9dc84d17024abb81713f56c366decff6b80ed63 Mon Sep 17 00:00:00 2001 From: Dedmen Miller Date: Fri, 8 Feb 2019 14:55:06 +0100 Subject: [PATCH] Compile minedetector scripts at preStart --- addons/minedetector/CfgEventHandlers.hpp | 5 +++++ addons/minedetector/XEH_preStart.sqf | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 addons/minedetector/XEH_preStart.sqf diff --git a/addons/minedetector/CfgEventHandlers.hpp b/addons/minedetector/CfgEventHandlers.hpp index f19d0e18ec..afe6392a7c 100644 --- a/addons/minedetector/CfgEventHandlers.hpp +++ b/addons/minedetector/CfgEventHandlers.hpp @@ -1,3 +1,8 @@ +class Extended_PreStart_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preStart)); + }; +}; class Extended_PreInit_EventHandlers { class ADDON { init = QUOTE(call COMPILE_FILE(XEH_preInit)); diff --git a/addons/minedetector/XEH_preStart.sqf b/addons/minedetector/XEH_preStart.sqf new file mode 100644 index 0000000000..022888575e --- /dev/null +++ b/addons/minedetector/XEH_preStart.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +#include "XEH_PREP.hpp"