Skip to content

Commit

Permalink
Cleanup CfgPatches and use VERSION_CONFIG consistently (#1222)
Browse files Browse the repository at this point in the history
* Cleanup CfgPatches and make them consistent, Use VERSION_CONFIG everywhere

* Remove redundant versionDesc
  • Loading branch information
jonpas committed Sep 7, 2019
1 parent ecdb7f5 commit 8a94c03
Show file tree
Hide file tree
Showing 28 changed files with 100 additions and 91 deletions.
3 changes: 1 addition & 2 deletions addons/accessory/MRT_AccFncs/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class CfgPatches {
class MRT_AccFncs {
requiredAddons[] = {"cba_accessory"};
versionDesc = "MRT Attachment Functions";
units[] = {};
requiredAddons[] = {"cba_accessory"};
};
};
6 changes: 3 additions & 3 deletions addons/accessory/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common", "cba_events"};
author = "$STR_CBA_Author";
authors[] = {"da12thMonkey", "Robalo", "Tupolov"};
version = VERSION;
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/ai/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {"CBA_B_InvisibleTarget","CBA_O_InvisibleTarget","CBA_I_InvisibleTarget","CBA_BuildingPos"};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Rommel"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/arrays/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Data_F_Enoch_Loadorder", "A3_Data_F_Mod_Loadorder"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner","Sickboy","Rocko"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/diagnostic/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner", "Sickboy"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/disposable/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common","cba_events"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"commy2"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/events/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner", "Sickboy", "Xeno", "commy2"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/hashes/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Spooner"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/help/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common","cba_keybinding"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"alef","Rocko","Sickboy"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/jam/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Robalo"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/jam/jam_finish/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = ECSTRING(jam,component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_jam"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/jr/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_jr_prep"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Robalo"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/jr/jr_prep/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = ECSTRING(jr,component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/keybinding/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Taosenai"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
// Simply a package which requires other addons.
class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
Expand Down Expand Up @@ -35,9 +33,10 @@ class CfgPatches {
"cba_optics",
"cba_disposable"
};
versionDesc = "C.B.A.";
VERSION_CONFIG;
author = "$STR_CBA_Author";
authors[] = {};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/main_a3/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = ECSTRING(main,component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_main"};
VERSION_CONFIG;
author = "$STR_CBA_Author";
authors[] = {};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
8 changes: 4 additions & 4 deletions addons/modules/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {"CBA_ModuleAttack", "CBA_ModuleDefend", "CBA_ModulePatrol"};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"WiredTiger"};

url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
7 changes: 4 additions & 3 deletions addons/music/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Dedmen", "Dorbedo", "Fishy"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
6 changes: 3 additions & 3 deletions addons/network/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"Sickboy"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
8 changes: 4 additions & 4 deletions addons/optics/config.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#include "script_component.hpp"
#include "script_component.hpp"

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common","cba_events","cba_jr"};
version = VERSION;
author = "$STR_CBA_Author";
authors[] = {"commy2"};
url = "$STR_CBA_URL";
VERSION_CONFIG;
};
};

Expand Down
Loading

0 comments on commit 8a94c03

Please sign in to comment.