From 708a2aa374567e84ab500eead2d5320a0ab7513f Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 18 Apr 2015 01:44:53 +0200 Subject: [PATCH] check if ddls are present on mission start --- addons/common/XEH_postInit.sqf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf index e470e91c95..eda61c66ad 100644 --- a/addons/common/XEH_postInit.sqf +++ b/addons/common/XEH_postInit.sqf @@ -188,3 +188,14 @@ GVAR(OldPlayerWeapon) = currentWeapon ACE_player; // Players can always interact with passengers of the same vehicle {!((_this select 0) isEqualTo (_this select 1)) && {vehicle (_this select 0) == vehicle (_this select 1)}} }] call FUNC(addCanInteractWithCondition); + +// check dlls +{ + if (_x callExtension "version" == "") then { + private "_errorMsg"; + _errorMsg = format ["Extension %1.dll not installed.", _x]; + + diag_log text format ["[ACE] ERROR: %1", _errorMsg]; + ["[ACE] ERROR", _errorMsg, {findDisplay 46 closeDisplay 0}] call FUNC(errorMessage); + }; +} forEach ["ace_breakLine", "ace_advanced_ballistics", "ace_fcs"];