Skip to content

Commit

Permalink
cleanup EE folder and move everything to XEH
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 30, 2023
1 parent 92bf768 commit 0a28b08
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 26 deletions.
1 change: 0 additions & 1 deletion addons/ee/$PBOPREFIX$

This file was deleted.

11 changes: 0 additions & 11 deletions addons/ee/script_component.hpp

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "\x\cba\addons\ee\script_component.hpp"
#include "\x\cba\addons\xeh\script_component.hpp"
#undef COMPONENT
#define COMPONENT ee_compat_contact
#define COMPONENT xeh_compat_contact

#if __has_include("\a3\Data_F_Contact\config.bin")
#else
#define PATCH_SKIP "Contact DLC"
#endif

#ifdef PATCH_SKIP
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "\x\cba\addons\ee\script_component.hpp"
#include "\x\cba\addons\xeh\script_component.hpp"
#undef COMPONENT
#define COMPONENT ee_compat_csla
#define COMPONENT xeh_compat_csla

#if __has_include("\csla_cfg\config.bin")
#else
#define PATCH_SKIP "CSLA - Iron Curtain"
#endif

#ifdef PATCH_SKIP
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "\x\cba\addons\ee\script_component.hpp"
#include "\x\cba\addons\xeh\script_component.hpp"
#undef COMPONENT
#define COMPONENT ee_compat_sog
#define COMPONENT xeh_compat_sog

#if __has_include("\vn\weapons_f_vietnam\config.bin")
#else
#define PATCH_SKIP "SOG-Vietnam"
#endif

#ifdef PATCH_SKIP
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "\x\cba\addons\ee\script_component.hpp"
#include "\x\cba\addons\xeh\script_component.hpp"
#undef COMPONENT
#define COMPONENT ee_compat_ws
#define COMPONENT xeh_compat_ws

#if __has_include("\lxWS\data_f_lxWS\config.bin")
#else
#define PATCH_SKIP "Western Sahara"
#endif

#ifdef PATCH_SKIP
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
Expand Down
2 changes: 0 additions & 2 deletions addons/ee/config.cpp → addons/xeh/ee/config.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include "script_component.hpp"

class CfgPatches {
class cba_ee {
requiredAddons[] = {"cba_xeh"};
Expand Down
10 changes: 10 additions & 0 deletions addons/xeh/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@

#include "script_xeh.hpp"

// macro add a dummy cfgPatch - this macro may be removed after 2.14 cleanup!
#define CBA_XEH_PATCH_NOT_LOADED(NAME,CAUSE) \
class CfgPatches { \
class DOUBLES(NAME,notLoaded) { \
units[] = {}; \
weapons[] = {}; \
cba_not_loaded = CAUSE; \
}; \
};

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

Expand Down

0 comments on commit 0a28b08

Please sign in to comment.