From a88a7839bb5d688c9d094a89410fcf2427c4103e Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 25 Jul 2016 00:11:00 +0200 Subject: [PATCH] Add beautified component names --- addons/headless/config.cpp | 1 + addons/headless/script_component.hpp | 1 + addons/main/config.cpp | 1 + addons/main/script_component.hpp | 1 + addons/main/script_mod.hpp | 8 ++++++-- addons/sitting/config.cpp | 1 + addons/sitting/script_component.hpp | 1 + addons/viewrestriction/config.cpp | 1 + addons/viewrestriction/script_component.hpp | 1 + 9 files changed, 14 insertions(+), 2 deletions(-) diff --git a/addons/headless/config.cpp b/addons/headless/config.cpp index 0750ed9f..a2a65a12 100644 --- a/addons/headless/config.cpp +++ b/addons/headless/config.cpp @@ -2,6 +2,7 @@ class CfgPatches { class ADDON { + name = COMPONENT_NAME; units[] = {}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; diff --git a/addons/headless/script_component.hpp b/addons/headless/script_component.hpp index a41e44cc..cf2edab3 100644 --- a/addons/headless/script_component.hpp +++ b/addons/headless/script_component.hpp @@ -1,4 +1,5 @@ #define COMPONENT headless +#define COMPONENT_BEAUTIFIED Headless #include "\z\acex\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL diff --git a/addons/main/config.cpp b/addons/main/config.cpp index 44f31ac6..6d153561 100644 --- a/addons/main/config.cpp +++ b/addons/main/config.cpp @@ -2,6 +2,7 @@ class CfgPatches { class ADDON { + name = COMPONENT_NAME; units[] = {}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; diff --git a/addons/main/script_component.hpp b/addons/main/script_component.hpp index 30fc8d75..0c6ca2b5 100644 --- a/addons/main/script_component.hpp +++ b/addons/main/script_component.hpp @@ -1,4 +1,5 @@ #define COMPONENT main +#define COMPONENT_BEAUTIFIED Main #include "\z\acex\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL diff --git a/addons/main/script_mod.hpp b/addons/main/script_mod.hpp index e24d325f..2d465e7d 100644 --- a/addons/main/script_mod.hpp +++ b/addons/main/script_mod.hpp @@ -11,8 +11,12 @@ #define VERSION MAJOR.MINOR.PATCHLVL.BUILD #define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD -#define ACEX_TAG ACEX - // MINIMAL required version for the Mod. Components can specify others.. #define REQUIRED_VERSION 1.60 #define REQUIRED_ACE_VERSION {3,6,0} + +#ifdef COMPONENT_BEAUTIFIED + #define COMPONENT_NAME QUOTE(ACEX - COMPONENT_BEAUTIFIED) +#else + #define COMPONENT_NAME QUOTE(ACEX - COMPONENT) +#endif diff --git a/addons/sitting/config.cpp b/addons/sitting/config.cpp index 1e7dafaf..2c0696d1 100644 --- a/addons/sitting/config.cpp +++ b/addons/sitting/config.cpp @@ -2,6 +2,7 @@ class CfgPatches { class ADDON { + name = COMPONENT_NAME; units[] = {}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; diff --git a/addons/sitting/script_component.hpp b/addons/sitting/script_component.hpp index a0606f3b..e43c11ce 100644 --- a/addons/sitting/script_component.hpp +++ b/addons/sitting/script_component.hpp @@ -1,4 +1,5 @@ #define COMPONENT sitting +#define COMPONENT_BEAUTIFIED Sitting #include "\z\acex\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL diff --git a/addons/viewrestriction/config.cpp b/addons/viewrestriction/config.cpp index 949f5aea..d7eff819 100644 --- a/addons/viewrestriction/config.cpp +++ b/addons/viewrestriction/config.cpp @@ -2,6 +2,7 @@ class CfgPatches { class ADDON { + name = COMPONENT_NAME; units[] = {}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; diff --git a/addons/viewrestriction/script_component.hpp b/addons/viewrestriction/script_component.hpp index 0166577d..01b6751d 100644 --- a/addons/viewrestriction/script_component.hpp +++ b/addons/viewrestriction/script_component.hpp @@ -1,4 +1,5 @@ #define COMPONENT viewrestriction +#define COMPONENT_BEAUTIFIED View Restriction #include "\z\acex\addons\main\script_mod.hpp" // #define DEBUG_MODE_FULL