XEH - Fix CBA fncs not available in editor when using RECOMPILE macro#1337
XEH - Fix CBA fncs not available in editor when using RECOMPILE macro#1337PabstMirror wants to merge 1 commit intomasterfrom
Conversation
| { | ||
| private _fncName = format ["CBA_fnc_%1", configName _x]; | ||
| _fncName call BIS_fnc_recompile; | ||
| } forEach (configProperties [_x]); |
There was a problem hiding this comment.
Before you change this, can this config or the super config contain any other tokens besides classes? Looks like it according to https://community.bistudio.com/wiki/Arma_3_Functions_Library. Though we likely not make use of them.
|
But this only works when setting the macro in the actual CBA header files and then building cba_main, not when editing some addon? I really don't see the point of this. |
|
Just tested. Works as expected, CBA functions present, ACE Arsenal works. |
|
Why do you uncomment RECOMPILE in cba_main in the first place though? |
|
Because I want to patch some CBA function and if I understand correctly RECOMPILE works only on game start. |
|
Patch for what? |
|
Patch to modify function, add something, maybe fix some bug, maybe just test/debug. Usual development. |
|
|
commy2
left a comment
There was a problem hiding this comment.
Should remove all CfgFunctions with PREPMAIN instead.
XEH - Fix CBA fncs not available in editor when using RECOMPILE macro
(DEV Only)