Skip to content

Commit

Permalink
Merge pull request #923 from CBATeam/cba_loadorder
Browse files Browse the repository at this point in the history
CfgPatches sorting
  • Loading branch information
Killswitch00 authored Jun 6, 2018
2 parents f887136 + 7999435 commit 35fa884
Show file tree
Hide file tree
Showing 34 changed files with 101 additions and 82 deletions.
6 changes: 6 additions & 0 deletions addons/accessory/MRT_AccFncs/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CfgPatches {
class MRT_AccFncs {
requiredAddons[] = {"cba_accessory"};
versionDesc = "MRT Attachment Functions";
};
};
9 changes: 1 addition & 8 deletions addons/accessory/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_main"};
requiredAddons[] = {"cba_common", "cba_events"};
authors[] = {"da12thMonkey", "Robalo", "Tupolov"};
version = VERSION;
versionDesc = "MRT Attachment Functions";
};
class MRT_AccFncs { //compat
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_main"};
};
};

Expand Down
2 changes: 1 addition & 1 deletion addons/ai/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Rommel"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/arrays/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Spooner"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_BaseConfig_F","A3_3DEN"};
requiredAddons[] = {"A3_Data_F_Tank_Loadorder"};
version = VERSION;
authors[] = {"Spooner","Sickboy","Rocko"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/diagnostic/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common", "CBA_events", "3DEN", "A3_Functions_F"};
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
authors[] = {"Spooner", "Sickboy"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/events/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Spooner", "Sickboy", "Xeno", "commy2"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/hashes/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Spooner"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/help/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common", "cba_hashes", "cba_keybinding", "A3_UI_F"};
requiredAddons[] = {"cba_common", "cba_hashes", "cba_keybinding"};
version = VERSION;
authors[] = {"alef", "Rocko", "Sickboy"};
};
Expand Down
5 changes: 5 additions & 0 deletions addons/jr/asdg_jointmuzzles/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class asdg_jointmuzzles {
requiredAddons[] = {"cba_jr"};
};
};
5 changes: 5 additions & 0 deletions addons/jr/asdg_jointrails/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class asdg_jointrails {
requiredAddons[] = {"cba_jr"};
};
};
14 changes: 1 addition & 13 deletions addons/jr/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,10 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_jr_prep"};
requiredAddons[] = {"cba_jr_prep"};
version = VERSION;
authors[] = {"Robalo"};
};
class asdg_jointrails { //compat
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Mark"};
};
class asdg_jointmuzzles { //compat
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Mark"};
};
};

#include "jr_classes.hpp"
Expand Down
16 changes: 0 additions & 16 deletions addons/jr_prep/config.cpp → addons/jr/jr_prep/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
#include "script_component.hpp"

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

class CfgWeapons {
class Rifle;
class Rifle_Base_F : Rifle {
Expand Down Expand Up @@ -248,7 +233,6 @@ class CfgWeapons {
};

class Pistol;

class Pistol_Base_F : Pistol {
class WeaponSlotsInfo;
};
Expand Down
16 changes: 16 additions & 0 deletions addons/jr/jr_prep/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "script_component.hpp"

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;
};
};

#include "CfgWeapons.hpp"
File renamed without changes.
1 change: 0 additions & 1 deletion addons/jr_prep/$PBOPREFIX$

This file was deleted.

2 changes: 1 addition & 1 deletion addons/keybinding/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common", "A3_UI_F"};
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
authors[] = {"Taosenai"};
};
Expand Down
39 changes: 23 additions & 16 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,35 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
// "CBA_XEH", would create circular dependency, however XEH is required by CBA common in any case :)
requiredAddons[] = {"cba_common", "cba_arrays", "cba_hashes", "cba_strings", "cba_events", "cba_diagnostic", "cba_network", "cba_ai", "cba_vectors", "cba_ui", "cba_help"};
requiredAddons[] = {
"cba_common",
"cba_events",
"cba_hashes",
"cba_jr_prep",
"cba_keybinding",
"cba_modules",
"cba_music",
"cba_network",
"cba_settings",
"cba_statemachine",
"cba_strings",
"cba_vectors",
"cba_xeh",
"cba_accessory",
"cba_ai",
"cba_arrays",
"cba_diagnostic",
"cba_help",
"cba_jr",
"cba_ui",
"cba_versioning"
};
versionDesc = "C.B.A.";
VERSION_CONFIG;
authors[] = {};
};
};

/*
class CfgMods {
class PREFIX {
dir = "@CBA";
name = "Community Base Addons";
picture = "x\cba\addons\main\logo_cba_ca.paa";
hidePicture = "true";
hideName = "true";
actionName = "Website";
action = "http://dev-heaven.net/projects/cca";
description = "Bugtracker: http://dev-heaven.net/projects/cca<br />Documentation: http://dev-heaven.net/projects/cca";
};
};
*/
class CfgSettings {
class CBA {
class Caching {
Expand Down
2 changes: 1 addition & 1 deletion addons/main_a3/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_Main"};
requiredAddons[] = {"cba_main"};
VERSION_CONFIG;
authors[] = {};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/modules/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {"CBA_ModuleAttack", "CBA_ModuleDefend", "CBA_ModulePatrol"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Modules_F", "CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"WiredTiger"};

Expand Down
2 changes: 1 addition & 1 deletion addons/music/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Dedmen", "Dorbedo", "Fishy"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/network/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common", "CBA_events"};
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
authors[] = {"Sickboy"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/settings/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common", "A3_UI_F", "3DEN"};
requiredAddons[] = {"cba_common", "cba_events"};
version = VERSION;
authors[] = {"commy2"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/statemachine/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"BaerMitUmlaut"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/strings/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "CBA_common" };
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Spooner", "Kronzky"};
};
Expand Down
5 changes: 1 addition & 4 deletions addons/ui/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = 1;
requiredAddons[] = {"CBA_common", "CBA_arrays", "A3_Ui_F"};
requiredAddons[] = {"cba_common", "cba_arrays"};
version = VERSION;
authors[] = {"Dr Eyeball", "commy2"};
};

// Backwards compatibility
class cba_ui_helper: ADDON {author = "";};
};

#include "CfgEventHandlers.hpp"
Expand Down
5 changes: 5 additions & 0 deletions addons/ui/ui_helper/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class cba_ui_helper {
requiredAddons[] = {"cba_ui"};
};
};
2 changes: 1 addition & 1 deletion addons/vectors/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common"};
requiredAddons[] = {"cba_common"};
version = VERSION;
authors[] = {"Vigilante"};
};
Expand Down
2 changes: 1 addition & 1 deletion addons/versioning/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"CBA_common", "CBA_strings", "CBA_hashes", "CBA_diagnostic", "CBA_events", "CBA_network"};
requiredAddons[] = {"cba_common", "cba_strings", "cba_hashes", "cba_diagnostic", "cba_events", "cba_network"};
version = VERSION;
authors[] = {"Sickboy"};
};
Expand Down
5 changes: 5 additions & 0 deletions addons/xeh/CBA_Extended_EventHandlers/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class CBA_Extended_EventHandlers {
requiredAddons[] = {"cba_xeh"};
};
};
5 changes: 5 additions & 0 deletions addons/xeh/Extended_EventHandlers/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class Extended_EventHandlers {
requiredAddons[] = {"cba_xeh"};
};
};
8 changes: 1 addition & 7 deletions addons/xeh/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CfgPatches {
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredAddons[] = {"A3_Data_F", "A3_Characters_F", "A3_Air_F", "A3_Armor_F", "A3_Boat_F", "A3_Soft_F", "A3_Air_F_Heli_Heli_Transport_04", "A3_Characters_F_exp", "A3_Props_F_Argo", "A3_Props_F_Orange", "A3_Characters_F_Orange"};
requiredAddons[] = {"cba_common"};
requiredVersion = 0.1;
version = "4.0.0"; // Due to older mod versions requiring > 3,3,3 etc
versionStr = "4.0.0";
Expand All @@ -17,12 +17,6 @@ class CfgPatches {
// this prevents any patched class from requiring XEH
addonRootClass = "A3_Characters_F";
};

// Backwards compatibility
class cba_xeh_a3: ADDON {author = "";};
class Extended_EventHandlers: ADDON {author = "";};
class CBA_Extended_EventHandlers: ADDON {author = "";};
class cba_ee: ADDON {author = "";};
};

#include "CfgEventHandlers.hpp"
Expand Down
5 changes: 5 additions & 0 deletions addons/xeh/ee/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class cba_ee {
requiredAddons[] = {"cba_xeh"};
};
};
5 changes: 5 additions & 0 deletions addons/xeh/xeh_a3/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgPatches {
class cba_xeh_a3 {
requiredAddons[] = {"cba_xeh"};
};
};

0 comments on commit 35fa884

Please sign in to comment.