Skip to content

Commit

Permalink
XEH cleanup for 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 30, 2023
1 parent 0a28b08 commit 4e39870
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 53 deletions.
2 changes: 1 addition & 1 deletion addons/main/script_mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD

// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 2.06
#define REQUIRED_VERSION 2.14

/*
// Defined DEBUG_MODE_NORMAL in a few CBA_fncs to prevent looped logging :)
Expand Down
2 changes: 0 additions & 2 deletions addons/xeh/addon.toml

This file was deleted.

10 changes: 0 additions & 10 deletions addons/xeh/compat_contact/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#undef COMPONENT
#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_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
units[] = {};
Expand Down Expand Up @@ -66,5 +58,3 @@ class CfgVehicles {
XEH_ENABLED;
};
};

#endif
10 changes: 0 additions & 10 deletions addons/xeh/compat_csla/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#undef COMPONENT
#define COMPONENT xeh_compat_csla

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

#ifdef PATCH_SKIP
CBA_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
units[] = {};
Expand Down Expand Up @@ -61,5 +53,3 @@ class CfgVehicles {
XEH_ENABLED;
};
};

#endif
10 changes: 0 additions & 10 deletions addons/xeh/compat_sog/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#undef COMPONENT
#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_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
units[] = {};
Expand Down Expand Up @@ -53,5 +45,3 @@ class CfgVehicles {
XEH_ENABLED;
};
};

#endif
10 changes: 0 additions & 10 deletions addons/xeh/compat_ws/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#undef COMPONENT
#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_XEH_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches {
class ADDON {
units[] = {};
Expand Down Expand Up @@ -85,5 +77,3 @@ class CfgVehicles {
XEH_ENABLED;
};
};

#endif
10 changes: 0 additions & 10 deletions addons/xeh/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@

#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 4e39870

Please sign in to comment.