From b727fd79c4f0c05932869cb784a6d69941a030cf Mon Sep 17 00:00:00 2001
From: PabstMirror <elephantisaterriblemascot@gmail.com>
Date: Mon, 18 May 2015 19:29:39 -0500
Subject: [PATCH] Call Ext Directly

CBA_fnc_split problems
---
 .../functions/fnc_debugDumpToClipboard.sqf    | 27 +++----------------
 1 file changed, 4 insertions(+), 23 deletions(-)

diff --git a/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf b/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
index 55e962b3c3..796ee5891e 100644
--- a/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
+++ b/addons/optionsmenu/functions/fnc_debugDumpToClipboard.sqf
@@ -15,14 +15,12 @@
  */
 #include "script_component.hpp"
 
-_outputString = "Array Variable Count':
-";
 
 {
     private["_var"];
     _var = missionNamespace getVariable [_x, nil];
     if(!isnil "_var" && {(typeName _var) == "ARRAY"} ) then {
-        _outputString = _outputString + format["%1 - ARRAY SIZE: %2
+        "ace_clipboard" callExtension format["%1 - ARRAY SIZE: %2
 ", _x, (count _var)];
     };
 } forEach (allVariables missionNamespace);
@@ -31,30 +29,13 @@ _outputString = "Array Variable Count':
     _unit = _x;
     {
         private["_var"];
-        _var = missionNamespace getVariable [_x, nil];
+        _var = _unit getVariable [_x, nil];
         if(!isnil "_var" && {(typeName _var) == "ARRAY"} ) then {
-            _outputString = _outputString + text format["%1 - ARRAY SIZE: %2 for %3
+            "ace_clipboard" callExtension format["%1 - ARRAY SIZE: %2 for %3
 ", _x, (count _var), _unit];
         };
     } forEach (allVariables _unit);
 } forEach allUnits;
 
 
-FUNC(clipboardExport) = {
-    private["_chunks"];
-    _chunks = [];
-
-    _chunks = [_this select 0, "-"] call CBA_fnc_split;
-
-    {
-        private["_chunk"];
-        _chunk = _x + ";";
-        "ace_clipboard" callExtension format["%1", _chunk];
-    } forEach _chunks;
-
-    "ace_clipboard" callExtension "--COMPLETE--";
-};
-
-
-[_outputString] call FUNC(clipboardExport);
-
+"ace_clipboard" callExtension "--COMPLETE--";