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]; +}; + +