-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General - Use subcomponent macro (CBA 3.16.0) #9375
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cdcbeef
Use subcomponent macro (CBA 3.16.0)
jonpas 14e048c
Streamline all subconfig CfgPatches
jonpas 66d9f1c
Use SUBADDON
jonpas 89a1b94
Move CSW and Fastroping includes to script_component.hpp
jonpas 7a8ec88
HuntIR - Use subcomponent macro in subconfig
jonpas e04700a
Update CBA include
jonpas 8bb447e
Flat defines
jonpas b607d74
Fix subcomponent `addonRootClass`
jonpas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_csla/compat_csla_explosives/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_csla\script_component.hpp" | ||
|
||
#define SUBCOMPONENT explosives | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Explosives | ||
#include "\z\ace\addons\compat_csla\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_gm\script_component.hpp" | ||
|
||
#define SUBCOMPONENT explosives | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Explosives | ||
#include "\z\ace\addons\compat_gm\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_gm\script_component.hpp" | ||
|
||
#define SUBCOMPONENT refuel | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Refuel | ||
#include "\z\ace\addons\compat_gm\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_csw/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#define SUBCOMPONENT csw | ||
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT csw | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#include "\z\ace\addons\csw\script_config_macros_csw.hpp" |
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_explosives/config.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_explosives/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT explosives | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Explosives | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_fastroping/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#define SUBCOMPONENT fastroping | ||
#define SUBCOMPONENT_BEAUTIFIED Fastroping | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT fastroping | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#include "\z\ace\addons\fastroping\script_macros.hpp" |
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_nightvision/config.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_nightvision/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT nightvision | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEUTIFIEID Night Vision | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_refuel/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT refuel | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Refuel | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_rhs_afrf3/compat_rhs_afrf3_scopes/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT scopes | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Scopes | ||
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_gref3/compat_rhs_gref3_csw/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#define SUBCOMPONENT csw | ||
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons | ||
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT csw | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#include "\z\ace\addons\csw\script_config_macros_csw.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
addons/compat_rhs_gref3/compat_rhs_gref3_explosives/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT explosives | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Explosives | ||
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
addons/compat_rhs_gref3/compat_rhs_gref3_fastroping/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#define SUBCOMPONENT fastroping | ||
#define SUBCOMPONENT_BEAUTIFIED Fastroping | ||
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" | ||
|
||
#define SUBCOMPONENT fastroping | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#include "\z\ace\addons\fastroping\script_macros.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
addons/compat_rhs_saf3/compat_rhs_saf3_explosives/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#define COMPONENT compat_rhs_saf3 | ||
#define COMPONENT_BEAUTIFIED RHS SAF Compatibility | ||
|
||
#include "\z\ace\addons\main\script_mod.hpp" | ||
|
||
#include "\z\ace\addons\main\script_macros.hpp" | ||
|
||
#define SUBCOMPONENT explosives | ||
#undef ADDON | ||
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) | ||
#define SUBCOMPONENT_BEAUTIFIED Explosives | ||
#include "\z\ace\addons\compat_rhs_saf3\script_component.hpp" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this, I am not sure if we want it?
CfgPatches
wiki page says:But some of our compats might be better off requiring a subcomponent specifically?