Skip to content

Commit

Permalink
General - Implement CBA versioning system (#609)
Browse files Browse the repository at this point in the history
**When merged this pull request will:**
- Title
### IMPORTANT

- [Development Guidelines](https://ace3.acemod.org/wiki/development/)
are read, understood and applied.
- Title of this PR uses our standard template `Component -
Add|Fix|Improve|Change|Make|Remove {changes}`.
  • Loading branch information
MiszczuZPolski authored Oct 8, 2024
1 parent 7b7c130 commit 4dd10ff
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
13 changes: 13 additions & 0 deletions addons/main/CfgSettings.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CfgSettings {
class CBA {
class Versioning {
class PREFIX {
class dependencies {
//KAT will hard exit if this is missing
CBA[] = {"cba_main", REQUIRED_CBA_VERSION, "(true)"};
ACE[] = {"ace_main", REQUIRED_ACE_VERSION, "(true)"};
};
};
};
};
};
2 changes: 2 additions & 0 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ class CfgMods {
description = "Issue Tracker: https://github.com/Tomcat-SG/KAM/issues";
};
};

#include "CfgSettings.hpp"
5 changes: 3 additions & 2 deletions addons/main/script_mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
#define VERSION_CONFIG version = MAJOR.MINOR; versionStr = QUOTE(MAJOR.MINOR.PATCH); versionAr[] = {MAJOR,MINOR,PATCH}

// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 2.14
#define REQUIRED_CBA_VERSION {3,15,7}
#define REQUIRED_VERSION 2.18
#define REQUIRED_CBA_VERSION {3,18,0}
#define REQUIRED_ACE_VERSION {3,18,0}

#ifdef COMPONENT_BEAUTIFIED
#define COMPONENT_NAME QUOTE(KAT - COMPONENT_BEAUTIFIED)
Expand Down

0 comments on commit 4dd10ff

Please sign in to comment.