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

Add beautified component names #30

Merged
merged 1 commit into from
Jul 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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