From e536c13fbe574c2ab95f4a3de857ecc8147a3f85 Mon Sep 17 00:00:00 2001 From: second_coming Date: Tue, 3 May 2016 11:40:48 +0100 Subject: [PATCH] v35 fixes --- scripts/processReporter.sqf | 39 ++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/scripts/processReporter.sqf b/scripts/processReporter.sqf index 91066b3..28aa65e 100644 --- a/scripts/processReporter.sqf +++ b/scripts/processReporter.sqf @@ -1,14 +1,31 @@ - _logDetail = "======================================================================================================="; -['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; - _logDetail = format['[processReporter] Started @ %4 : [FPS: %1|PLAYERS: %2|THREADS: %3]',diag_fps,count allplayers,count diag_activeSQFScripts,time]; -['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; -_logDetail = "======================================================================================================="; -['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; - +if(!isNil "INFISTARVERSION") then { - _logDetail = format ["[processReporter] %1 @ %2",_x,time]; + _logDetail = "======================================================================================================="; + ['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; + + _logDetail = format['[processReporter] Started @ %4 : [FPS: %1|PLAYERS: %2|THREADS: %3]',diag_fps,count allplayers,count diag_activeSQFScripts,time]; + ['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; + + _logDetail = "======================================================================================================="; ['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; -} forEach diag_activeSQFScripts; -_logDetail = format ["[processReporter] Ended @ %1",time]; -['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; \ No newline at end of file + { + _logDetail = format ["[processReporter] %1 @ %2",_x,time]; + ['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; + } forEach diag_activeSQFScripts; + + _logDetail = format ["[processReporter] Ended @ %1",time]; + ['A3_EXILE_PROCESSREPORTER',_logDetail] call FNC_A3_CUSTOMLOG; +} +else +{ + diag_log "======================================================================================================="; + diag_log format['[processReporter] Started @ %4 : [FPS: %1|PLAYERS: %2|THREADS: %3]',diag_fps,count allplayers,count diag_activeSQFScripts,time]; + diag_log "======================================================================================================="; + { + diag_log format ["[processReporter] %1 @ %2",_x,time]; + } forEach diag_activeSQFScripts; + diag_log format ["[processReporter] Ended @ %1",time]; +}; + +