mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3624 from acemod/compatPboWarnings
Compat pbo warnings
This commit is contained in:
commit
89428dc55c
@ -33,6 +33,21 @@ if (!hasInterface) exitWith {};
|
|||||||
["firedPlayer", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
["firedPlayer", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
||||||
["firedPlayerNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
["firedPlayerNonLocal", DFUNC(handleFired)] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
|
//Add warnings for missing compat PBOs (only if AB is on)
|
||||||
|
{
|
||||||
|
_x params ["_modPBO", "_compatPBO"];
|
||||||
|
if ((isClass (configFile >> "CfgPatches" >> _modPBO)) && {!isClass (configFile >> "CfgPatches" >> _compatPBO)}) then {
|
||||||
|
ACE_LOGWARNING_2("Weapon Mod [%1] missing ace compat pbo [%2] (from @ace\optionals)",_modPBO,_compatPBO);
|
||||||
|
};
|
||||||
|
} forEach [
|
||||||
|
["RH_acc","ace_compat_rh_acc"],
|
||||||
|
["RH_de_cfg","ace_compat_rh_de"],
|
||||||
|
["RH_m4_cfg","ace_compat_rh_m4"],
|
||||||
|
["RH_PDW","ace_compat_rh_pdw"],
|
||||||
|
["RKSL_PMII","ace_compat_rksl_pm_ii"],
|
||||||
|
["iansky_opt","ace_compat_sma3_iansky"],
|
||||||
|
["R3F_Armes","ace_compat_r3f"]
|
||||||
|
];
|
||||||
}] call EFUNC(common,addEventHandler);
|
}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
#ifdef DEBUG_MODE_FULL
|
#ifdef DEBUG_MODE_FULL
|
||||||
|
17
addons/main/CfgSettings.hpp
Normal file
17
addons/main/CfgSettings.hpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
class CfgSettings {
|
||||||
|
class CBA {
|
||||||
|
class Versioning {
|
||||||
|
class ACE {
|
||||||
|
class dependencies {
|
||||||
|
//ACE will hard exit if this is missing
|
||||||
|
CBA[] = {"cba_main", REQUIRED_CBA_VERSION, "(true)"};
|
||||||
|
|
||||||
|
//Warnings for missing RHS compat pbos
|
||||||
|
compat_rhs_afrf3[] = {"ace_compat_rhs_afrf3", {VERSION_AR}, "isClass (configFile >> 'CfgPatches' >> 'rhs_main')"};
|
||||||
|
compat_rhs_usf3[] = {"ace_compat_rhs_usf3", {VERSION_AR}, "isClass (configFile >> 'CfgPatches' >> 'rhsusf_main')"};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@ -586,18 +586,6 @@ class CfgMods {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "CfgSettings.hpp"
|
||||||
#include "CfgModuleCategories.hpp"
|
#include "CfgModuleCategories.hpp"
|
||||||
#include "CfgVehicleClasses.hpp"
|
#include "CfgVehicleClasses.hpp"
|
||||||
|
|
||||||
class CfgSettings {
|
|
||||||
class CBA {
|
|
||||||
class Versioning {
|
|
||||||
class ACE {
|
|
||||||
class dependencies {
|
|
||||||
CBA[] = {"cba_main", REQUIRED_CBA_VERSION, "(true)"};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user