Skip to content

Commit 0a28b08

Browse files
committed
cleanup EE folder and move everything to XEH
1 parent 92bf768 commit 0a28b08

File tree

9 files changed

+22
-26
lines changed

9 files changed

+22
-26
lines changed

addons/ee/$PBOPREFIX$

-1
This file was deleted.

addons/ee/script_component.hpp

-11
This file was deleted.
File renamed without changes.

addons/ee/compat_contact/config.cpp addons/xeh/compat_contact/config.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include "\x\cba\addons\ee\script_component.hpp"
1+
#include "\x\cba\addons\xeh\script_component.hpp"
22
#undef COMPONENT
3-
#define COMPONENT ee_compat_contact
3+
#define COMPONENT xeh_compat_contact
44

55
#if __has_include("\a3\Data_F_Contact\config.bin")
66
#else
77
#define PATCH_SKIP "Contact DLC"
88
#endif
99

1010
#ifdef PATCH_SKIP
11-
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
11+
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
1212
#else
1313
class CfgPatches {
1414
class ADDON {

addons/ee/compat_csla/config.cpp addons/xeh/compat_csla/config.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include "\x\cba\addons\ee\script_component.hpp"
1+
#include "\x\cba\addons\xeh\script_component.hpp"
22
#undef COMPONENT
3-
#define COMPONENT ee_compat_csla
3+
#define COMPONENT xeh_compat_csla
44

55
#if __has_include("\csla_cfg\config.bin")
66
#else
77
#define PATCH_SKIP "CSLA - Iron Curtain"
88
#endif
99

1010
#ifdef PATCH_SKIP
11-
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
11+
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
1212
#else
1313
class CfgPatches {
1414
class ADDON {

addons/ee/compat_sog/config.cpp addons/xeh/compat_sog/config.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include "\x\cba\addons\ee\script_component.hpp"
1+
#include "\x\cba\addons\xeh\script_component.hpp"
22
#undef COMPONENT
3-
#define COMPONENT ee_compat_sog
3+
#define COMPONENT xeh_compat_sog
44

55
#if __has_include("\vn\weapons_f_vietnam\config.bin")
66
#else
77
#define PATCH_SKIP "SOG-Vietnam"
88
#endif
99

1010
#ifdef PATCH_SKIP
11-
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
11+
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
1212
#else
1313
class CfgPatches {
1414
class ADDON {

addons/ee/compat_ws/config.cpp addons/xeh/compat_ws/config.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#include "\x\cba\addons\ee\script_component.hpp"
1+
#include "\x\cba\addons\xeh\script_component.hpp"
22
#undef COMPONENT
3-
#define COMPONENT ee_compat_ws
3+
#define COMPONENT xeh_compat_ws
44

55
#if __has_include("\lxWS\data_f_lxWS\config.bin")
66
#else
77
#define PATCH_SKIP "Western Sahara"
88
#endif
99

1010
#ifdef PATCH_SKIP
11-
CBA_EE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
11+
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
1212
#else
1313
class CfgPatches {
1414
class ADDON {

addons/ee/config.cpp addons/xeh/ee/config.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include "script_component.hpp"
2-
31
class CfgPatches {
42
class cba_ee {
53
requiredAddons[] = {"cba_xeh"};

addons/xeh/script_component.hpp

+10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@
3838

3939
#include "script_xeh.hpp"
4040

41+
// macro add a dummy cfgPatch - this macro may be removed after 2.14 cleanup!
42+
#define CBA_XEH_PATCH_NOT_LOADED(NAME,CAUSE) \
43+
class CfgPatches { \
44+
class DOUBLES(NAME,notLoaded) { \
45+
units[] = {}; \
46+
weapons[] = {}; \
47+
cba_not_loaded = CAUSE; \
48+
}; \
49+
};
50+
4151
#undef XEH_ENABLED
4252
#define XEH_ENABLED class EventHandlers {class XEH_CLASS: XEH_CLASS_BASE {};}; SLX_XEH_DISABLED = 0
4353

0 commit comments

Comments
 (0)