From b7ed697e1c6bf5394acff132c486b647bac2d9e5 Mon Sep 17 00:00:00 2001 From: commy2 Date: Tue, 10 Mar 2015 18:05:56 +0100 Subject: [PATCH] add repair PBO --- addons/repair/$PBOPREFIX$ | 1 + addons/repair/CfgEventHandlers.hpp | 6 ++++++ addons/repair/XEH_preInit.sqf | 7 +++++++ addons/repair/config.cpp | 15 +++++++++++++++ addons/repair/functions/fnc_empty.sqf | 3 +++ addons/repair/functions/script_component.hpp | 1 + addons/repair/script_component.hpp | 12 ++++++++++++ 7 files changed, 45 insertions(+) create mode 100644 addons/repair/$PBOPREFIX$ create mode 100644 addons/repair/CfgEventHandlers.hpp create mode 100644 addons/repair/XEH_preInit.sqf create mode 100644 addons/repair/config.cpp create mode 100644 addons/repair/functions/fnc_empty.sqf create mode 100644 addons/repair/functions/script_component.hpp create mode 100644 addons/repair/script_component.hpp diff --git a/addons/repair/$PBOPREFIX$ b/addons/repair/$PBOPREFIX$ new file mode 100644 index 0000000000..d8fbd51195 --- /dev/null +++ b/addons/repair/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\repair \ No newline at end of file diff --git a/addons/repair/CfgEventHandlers.hpp b/addons/repair/CfgEventHandlers.hpp new file mode 100644 index 0000000000..f0a9f14d91 --- /dev/null +++ b/addons/repair/CfgEventHandlers.hpp @@ -0,0 +1,6 @@ + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; diff --git a/addons/repair/XEH_preInit.sqf b/addons/repair/XEH_preInit.sqf new file mode 100644 index 0000000000..69abb46fa9 --- /dev/null +++ b/addons/repair/XEH_preInit.sqf @@ -0,0 +1,7 @@ +#include "script_component.hpp" + +ADDON = false; + +PREP(empty); + +ADDON = true; diff --git a/addons/repair/config.cpp b/addons/repair/config.cpp new file mode 100644 index 0000000000..33d2665311 --- /dev/null +++ b/addons/repair/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {"commy2"}; + authorUrl = "https://github.com/commy2"; + VERSION_CONFIG; + }; +}; + +#include "CfgEventHandlers.hpp" diff --git a/addons/repair/functions/fnc_empty.sqf b/addons/repair/functions/fnc_empty.sqf new file mode 100644 index 0000000000..c60a82b2d8 --- /dev/null +++ b/addons/repair/functions/fnc_empty.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +diag_log text format["This is here as an example!!!"]; diff --git a/addons/repair/functions/script_component.hpp b/addons/repair/functions/script_component.hpp new file mode 100644 index 0000000000..ea8f8ef9f9 --- /dev/null +++ b/addons/repair/functions/script_component.hpp @@ -0,0 +1 @@ +#include "\z\ace\addons\repair\script_component.hpp" \ No newline at end of file diff --git a/addons/repair/script_component.hpp b/addons/repair/script_component.hpp new file mode 100644 index 0000000000..37fd2b8c8b --- /dev/null +++ b/addons/repair/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT repair +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_REPAIR + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_REPAIR + #define DEBUG_SETTINGS DEBUG_SETTINGS_REPAIR +#endif + +#include "\z\ace\addons\main\script_macros.hpp" \ No newline at end of file