mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
update extension check (#5899)
This commit is contained in:
parent
ca9448c938
commit
801afb3061
@ -78,7 +78,17 @@ if (toLower (productVersion select 6) in ["linux", "osx"]) then {
|
||||
private _versionEx = _x callExtension "version";
|
||||
|
||||
if (_versionEx == "") then {
|
||||
private _errorMsg = format ["Extension %1.dll not installed.", _x];
|
||||
private _extension = ".dll";
|
||||
|
||||
if (productVersion select 7 == "x64") then {
|
||||
_extension = "_x64.dll";
|
||||
};
|
||||
|
||||
if (productVersion select 6 == "Linux") then {
|
||||
_extension = ".so";
|
||||
};
|
||||
|
||||
private _errorMsg = format ["Extension %1%2 not found.", _x, _extension];
|
||||
|
||||
ERROR(_errorMsg);
|
||||
|
||||
|
@ -10,10 +10,8 @@ GVAR(injuredUnitCollection) = [];
|
||||
|
||||
private _versionEx = "ace_medical" callExtension "version";
|
||||
DFUNC(handleDamage_assignWounds) = if (_versionEx == "") then {
|
||||
INFO_1("Extension %1.dll not installed.","ace_medical");
|
||||
DFUNC(handleDamage_woundsOld)
|
||||
} else {
|
||||
INFO_2("Extension version: %1: %2","ace_medical",_versionEx);
|
||||
DFUNC(handleDamage_wounds)
|
||||
};
|
||||
|
||||
|
@ -54,3 +54,7 @@ class ACE_newEvents {
|
||||
actionCheckBloodPressureLocal = QGVAR(actionCheckBloodPressureLocal);
|
||||
addVitalLoop = QGVAR(addVitalLoop);
|
||||
};
|
||||
|
||||
class ACE_Extensions {
|
||||
extensions[] += {"ace_medical"};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user