From 6218605962c59e0e50c7a8c1d2e9faefd46aeb22 Mon Sep 17 00:00:00 2001 From: commy2 Date: Tue, 6 Sep 2016 16:10:08 +0200 Subject: [PATCH] remove obsolete files from diagnostic component used to debug the old XEH --- addons/diagnostic/xeh/config.cpp | 81 ---------------------- addons/diagnostic/xeh/script_component.hpp | 12 ---- 2 files changed, 93 deletions(-) delete mode 100644 addons/diagnostic/xeh/config.cpp delete mode 100644 addons/diagnostic/xeh/script_component.hpp diff --git a/addons/diagnostic/xeh/config.cpp b/addons/diagnostic/xeh/config.cpp deleted file mode 100644 index c924f4dd5..000000000 --- a/addons/diagnostic/xeh/config.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// #define EH_DEBUG_ENABLED -#ifndef EH_DEBUG_ENABLED - class CfgPatches { - class cba_diagnostics_xeh_disabled { - author = "$STR_CBA_Author"; - name = "$STR_CBA_Optional_Component"; - url = "$STR_CBA_URL"; - units[] = {}; - weapons[] = {}; - worlds[] = {}; - requiredVersion = 1.0; - requiredAddons[] = {"cba_diagnostic"}; - }; - }; -#endif -#ifdef EH_DEBUG_ENABLED - #include "script_component.hpp" - class CfgPatches { - class ADDON { - author = "$STR_CBA_Author"; - name = "$STR_CBA_Optional_Component"; - url = "$STR_CBA_URL"; - units[] = {}; - weapons[] = {}; - worlds[] = {}; - requiredVersion = 1.0; - requiredAddons[] = {"cba_diagnostic"}; - }; - }; - - #define ARGUMENTS diag_frameNo, diag_tickTime, time, _this - #define UNIT_ARGS 'type', 'STD', typeOf (_this select 0), _this - #define UNIT_ARGS2 'type', 'PLY', typeOf (_this select 0), _this - #define EH_INIT(type2) ##type2 = QUOTE(FUNC(diag_xeh) = { diag_log [ARGUMENTS]; }; ['type type2'] call FUNC(diag_xeh)) - - #define EH_DEBUG(type) class Extended_##type##_EventHandlers { class All { class 0 { ##type = QUOTE([UNIT_ARGS] call FUNC(diag_xeh)); ##type##Player = QUOTE([UNIT_ARGS2] call FUNC(diag_xeh)); }; }; } - // Exception: INIT and INITPOST both use init, serverInit, clientInit :| - // TODO: serverInit/clientInit ? - #define EH_DEBUG_INIT(type) class Extended_##type##_EventHandlers { class All { class 0 { init = QUOTE([UNIT_ARGS] call FUNC(diag_xeh)); }; }; } - // TODO: server##type client##type ? - #define EH_DEBUG_ONCE(type) class Extended_##type##_EventHandlers { class 0 { EH_INIT(init); EH_INIT(serverInit); EH_INIT(clientInit); }; } - - EH_DEBUG_ONCE(preInit); - EH_DEBUG_ONCE(postInit); - EH_DEBUG_INIT(InitPost); - EH_DEBUG_INIT(Init); - EH_DEBUG(AnimChanged); - EH_DEBUG(AnimDone); - EH_DEBUG(AnimStateChanged); - EH_DEBUG(ControlsShifted); - EH_DEBUG(Dammaged); - EH_DEBUG(Engine); - EH_DEBUG(EpeContact); - EH_DEBUG(EpeContactEnd); - EH_DEBUG(EpeContactStart); - EH_DEBUG(Explosion); - EH_DEBUG(Fired); - EH_DEBUG(FiredNear); - EH_DEBUG(Fuel); - EH_DEBUG(Gear); - EH_DEBUG(GetIn); - EH_DEBUG(GetOut); -// EH_DEBUG(HandleDamage); -// EH_DEBUG(HandleHeal); - EH_DEBUG(Hit); - EH_DEBUG(HitPart); - EH_DEBUG(IncomingMissile); - EH_DEBUG(Killed); - EH_DEBUG(LandedTouchDown); - EH_DEBUG(LandedStopped); - EH_DEBUG(Local); -// EH_DEBUG(MPHit); -// EH_DEBUG(MPKilled); -// EH_DEBUG(MPRespawn); - EH_DEBUG(Put); - EH_DEBUG(Respawn); - EH_DEBUG(Take); - EH_DEBUG(WeaponAssembled); - EH_DEBUG(WeaponDisassembled); -#endif - diff --git a/addons/diagnostic/xeh/script_component.hpp b/addons/diagnostic/xeh/script_component.hpp deleted file mode 100644 index 8b729434a..000000000 --- a/addons/diagnostic/xeh/script_component.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#define COMPONENT diagnostic_xeh -#include "\x\cba\addons\main\script_mod.hpp" - -#ifdef DEBUG_ENABLED_DIAGNOSTIC - #define DEBUG_MODE_FULL -#endif - -#ifdef DEBUG_SETTINGS_DIAGNOSTIC - #define DEBUG_SETTINGS DEBUG_SETTINGS_DIAGNOSTIC -#endif - -#include "\x\cba\addons\main\script_macros.hpp"