Proposed fix for #1158

Sent directly to extension instead of splitting it
This commit is contained in:
Glowbal 2015-05-20 10:26:32 +02:00
parent 3a3b2bc1dc
commit d6cc1d4b76

View File

@ -18,8 +18,6 @@
private ["_compiledConfig", "_name", "_typeName", "_isClientSetable", "_localizedName", "_localizedDescription", "_possibleValues", "_defaultValue", "_value", "_compiledConfigEntry"]; private ["_compiledConfig", "_name", "_typeName", "_isClientSetable", "_localizedName", "_localizedDescription", "_possibleValues", "_defaultValue", "_value", "_compiledConfigEntry"];
_compiledConfig = "
";
{ {
/*_settingData = [ /*_settingData = [
_name, _name,
@ -55,25 +53,11 @@ class %1 {
force = 1; force = 1;
};", _name, _value, format['"%1"', _typeName]]; };", _name, _value, format['"%1"', _typeName]];
_compiledConfig = _compiledConfig + _compiledConfigEntry; "ace_clipboard" callExtension _compiledConfigEntry;
}; };
} forEach EGVAR(common,settings); } forEach EGVAR(common,settings);
FUNC(clipboardExport) = { "ace_clipboard" callExtension "--COMPLETE--";
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--";
};
[_compiledConfig] call FUNC(clipboardExport);
["STR_ACE_OptionsMenu_settingsExported"] call EFUNC(common,displayTextStructured); ["STR_ACE_OptionsMenu_settingsExported"] call EFUNC(common,displayTextStructured);