Skip to content

Commit 1635e1e

Browse files
authored
Medical/Realistic Names - use skipWhenAnyAddonPresent (acemod#11081)
1 parent 81051af commit 1635e1e

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

addons/main/script_mod.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
1111

1212
// MINIMAL required version for the Mod. Components can specify others..
13-
#define REQUIRED_VERSION 2.20
13+
#define REQUIRED_VERSION 2.22
1414
#define REQUIRED_CBA_VERSION {3,18,4}
1515

1616
#ifndef COMPONENT_BEAUTIFIED

addons/medical_engine/config.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
#include "script_component.hpp"
22

3-
#pragma hemtt flag pe23_ignore_has_include
4-
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
5-
#define PATCH_SKIP "No Medical"
6-
#endif
7-
8-
#ifdef PATCH_SKIP
9-
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
10-
#else
113
class CfgPatches {
124
class ADDON {
135
name = COMPONENT_NAME;
146
units[] = {};
157
weapons[] = {};
168
requiredVersion = REQUIRED_VERSION;
179
requiredAddons[] = {"ace_common"};
10+
skipWhenAnyAddonPresent[] = {"ace_nomedical"}; // requires 2.22
1811
author = ECSTRING(common,ACETeam);
1912
authors[] = {"Glowbal","KoffeinFlummi","commy2"};
2013
url = ECSTRING(main,URL);
@@ -28,5 +21,3 @@ class CfgPatches {
2821
#include "CfgFunctions.hpp"
2922
#include "CfgMoves.hpp"
3023
#include "CfgVehicles.hpp"
31-
32-
#endif

addons/realisticnames/config.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
#include "script_component.hpp"
22

3-
#pragma hemtt flag pe23_ignore_has_include
4-
#if __has_include("\z\ace\addons\norealisticnames\script_component.hpp")
5-
#define PATCH_SKIP "No Realistic Names"
6-
#endif
7-
8-
#ifdef PATCH_SKIP
9-
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
10-
#else
113
class CfgPatches {
124
class ADDON {
135
name = COMPONENT_NAME;
146
units[] = {};
157
weapons[] = {};
168
requiredVersion = REQUIRED_VERSION;
179
requiredAddons[] = {"ace_common", "ace_optics"};
10+
skipWhenAnyAddonPresent[] = {"ace_norealisticnames"}; // requires 2.22
1811
author = ECSTRING(common,ACETeam);
1912
authors[] = {"KoffeinFlummi","TaoSensai","commy2"};
2013
url = ECSTRING(main,URL);
@@ -28,5 +21,3 @@ class CfgPatches {
2821
#include "CfgMagazines.hpp"
2922
#include "CfgVehicles.hpp"
3023
#include "CfgWeapons.hpp"
31-
32-
#endif

0 commit comments

Comments
 (0)