From 939506842464b19da72c54ede7791287aa5117c8 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 15 Oct 2021 12:54:12 -0500 Subject: [PATCH] General - Empty units/weapons arryas in acex cfgPatches, Add acex_main (#8518) --- addons/field_rations/config.cpp | 5 ++++- addons/fortify/config.cpp | 5 ++++- addons/headless/config.cpp | 5 ++++- addons/intelitems/config.cpp | 5 ++++- addons/main/config.cpp | 5 +++++ addons/sitting/config.cpp | 5 ++++- addons/viewrestriction/config.cpp | 5 ++++- 7 files changed, 29 insertions(+), 6 deletions(-) diff --git a/addons/field_rations/config.cpp b/addons/field_rations/config.cpp index 6c9647d8ed..2d990751b7 100644 --- a/addons/field_rations/config.cpp +++ b/addons/field_rations/config.cpp @@ -51,7 +51,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "CfgEventHandlers.hpp" diff --git a/addons/fortify/config.cpp b/addons/fortify/config.cpp index 5faf17341b..9cf776c4a9 100644 --- a/addons/fortify/config.cpp +++ b/addons/fortify/config.cpp @@ -12,7 +12,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "Cfg3DEN.hpp" diff --git a/addons/headless/config.cpp b/addons/headless/config.cpp index e1a6f17276..f6c4212438 100644 --- a/addons/headless/config.cpp +++ b/addons/headless/config.cpp @@ -13,7 +13,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "ACE_Settings.hpp" diff --git a/addons/intelitems/config.cpp b/addons/intelitems/config.cpp index 419db25c88..20827183b1 100644 --- a/addons/intelitems/config.cpp +++ b/addons/intelitems/config.cpp @@ -17,7 +17,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "CfgEventHandlers.hpp" diff --git a/addons/main/config.cpp b/addons/main/config.cpp index 7dda3f1f4c..7aa06bc69d 100644 --- a/addons/main/config.cpp +++ b/addons/main/config.cpp @@ -11,6 +11,11 @@ class CfgPatches { url = CSTRING(URL); VERSION_CONFIG; }; + + class XADDON: ADDON { // just in-case anything requires "acex_main" + units[] = {}; + weapons[] = {}; + }; }; class CfgMods { diff --git a/addons/sitting/config.cpp b/addons/sitting/config.cpp index 991c0a63ca..9f91f342b0 100644 --- a/addons/sitting/config.cpp +++ b/addons/sitting/config.cpp @@ -13,7 +13,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "ACE_Settings.hpp" diff --git a/addons/viewrestriction/config.cpp b/addons/viewrestriction/config.cpp index 7b22d2ab3c..946fc5bdfe 100644 --- a/addons/viewrestriction/config.cpp +++ b/addons/viewrestriction/config.cpp @@ -13,7 +13,10 @@ class CfgPatches { VERSION_CONFIG; }; - class XADDON: ADDON {}; + class XADDON: ADDON { + units[] = {}; + weapons[] = {}; + }; }; #include "CfgEventHandlers.hpp"