Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Add beautified component names (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas authored and thojkooi committed Jul 25, 2016
1 parent 3fb5691 commit a7688ff
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions addons/headless/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
Expand Down
1 change: 1 addition & 0 deletions addons/headless/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define COMPONENT headless
#define COMPONENT_BEAUTIFIED Headless
#include "\z\acex\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
Expand Down
1 change: 1 addition & 0 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
Expand Down
1 change: 1 addition & 0 deletions addons/main/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define COMPONENT main
#define COMPONENT_BEAUTIFIED Main
#include "\z\acex\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
Expand Down
8 changes: 6 additions & 2 deletions addons/main/script_mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions addons/sitting/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
Expand Down
1 change: 1 addition & 0 deletions addons/sitting/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define COMPONENT sitting
#define COMPONENT_BEAUTIFIED Sitting
#include "\z\acex\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
Expand Down
1 change: 1 addition & 0 deletions addons/viewrestriction/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
Expand Down
1 change: 1 addition & 0 deletions addons/viewrestriction/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define COMPONENT viewrestriction
#define COMPONENT_BEAUTIFIED View Restriction
#include "\z\acex\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
Expand Down

0 comments on commit a7688ff

Please sign in to comment.